	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_rx_handle_data
_wl1271_rx_handle_data:                 ## @wl1271_rx_handle_data
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	12(%rdi), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_2:
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_wlcore_hw_get_rx_packet_len
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	movq	_WLCORE_RX_BUF_UNALIGNED@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	_RX_BUF_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_wl1271_error
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_WLCORE_RX_BUF_PADDED@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	%r13d, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	_RX_BUF_ALIGN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	jmp	LBB0_11
LBB0_10:
	xorl	%edi, %edi
LBB0_11:
	movq	(%r14), %rax
	movq	_WL12XX_RX_CLASS_LOGGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movslq	%r15d, %rdx
	addq	$-24, %rdx
	addq	$96, %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_wl12xx_copy_fwlog
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_13:
	movl	8(%r14), %esi
	movq	_WL1271_RX_DESC_DECRYPT_FAIL@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_15
## %bb.14:
	leaq	96(%r14), %r15
	movq	_WL1271_RX_DESC_STATUS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	%rdi, %r13
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	callq	_wl1271_warning
	movq	_DEBUG_RX@GOTPCREL(%rip), %rax
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movl	100(%r14,%r13,4), %edi
	callq	_ieee80211_hdrlen
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_wl1271_dump
	jmp	LBB0_1
LBB0_15:
	movl	%ebx, %edi
	addl	%edx, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	___dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_reserve
	leaq	96(%r14), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_skb_put_data
	movq	_WLCORE_RX_BUF_PADDED@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_18
## %bb.17:
	movq	_RX_BUF_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skb_pull
LBB0_18:
	movl	12(%r14), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	8(%r15), %r13
	movl	4(%r13), %edi
	callq	_ieee80211_is_beacon
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	callq	_ieee80211_is_data_present
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movq	%r15, %rdi
	callq	_IEEE80211_SKB_RXCB
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %edi
	callq	_ieee80211_is_probe_resp
	xorl	%ecx, %ecx
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	setne	%cl
	leaq	L_.str.6(%rip), %rdx
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rdx, %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %r8d
	callq	_wl1271_rx_status
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_wlcore_hw_set_rx_csum
	movl	(%r13), %edi
	callq	_le16_to_cpu
	movq	_IEEE80211_SCTL_SEQ@GOTPCREL(%rip), %rsi
	movq	_DEBUG_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%r15), %rcx
	andl	(%rsi), %eax
	sarl	$4, %eax
	subq	16(%r14), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %esi
	movl	%esi, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, %r9d
	callq	_wl1271_debug
	leaq	8(%r12), %rdi
	movq	%r15, %rsi
	callq	_skb_queue_tail
	movl	4(%r12), %edi
	movq	%r12, %rsi
	callq	_queue_work
	jmp	LBB0_3
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wl1271_error
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid packet arrived from HW. length %d"

	.comm	_WLCORE_RX_BUF_UNALIGNED,4,2    ## @WLCORE_RX_BUF_UNALIGNED
	.comm	_RX_BUF_ALIGN,4,2               ## @RX_BUF_ALIGN
	.comm	_WLCORE_RX_BUF_PADDED,4,2       ## @WLCORE_RX_BUF_PADDED
	.comm	_WL12XX_RX_CLASS_LOGGER,8,3     ## @WL12XX_RX_CLASS_LOGGER
	.comm	_WL1271_RX_DESC_DECRYPT_FAIL,4,2 ## @WL1271_RX_DESC_DECRYPT_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"corrupted packet in RX: status: 0x%x len: %d"

	.comm	_WL1271_RX_DESC_STATUS_MASK,4,2 ## @WL1271_RX_DESC_STATUS_MASK
	.comm	_DEBUG_RX,4,2                   ## @DEBUG_RX
	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
L_.str.2:                               ## @.str.2
	.asciz	"PKT: "

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't allocate RX frame"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE80211_SCTL_SEQ,4,2         ## @IEEE80211_SCTL_SEQ
L_.str.4:                               ## @.str.4
	.asciz	"rx skb 0x%p: %d B %s seq %d hlid %d"

L_.str.5:                               ## @.str.5
	.asciz	"beacon"

L_.str.6:                               ## @.str.6
	.space	1

	.no_dead_strip	_wl1271_rx_handle_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_rx_handle_data
_wl1271_rx_handle_data:                 ; @wl1271_rx_handle_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x24, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_3:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_wlcore_hw_get_rx_packet_len
	cbz	w0, LBB0_7
; %bb.5:
	mov	x23, x0
Lloh2:
	adrp	x8, _WLCORE_RX_BUF_UNALIGNED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WLCORE_RX_BUF_UNALIGNED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_8
; %bb.6:
	mov	x8, #0
Lloh5:
	adrp	x9, _RX_BUF_ALIGN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RX_BUF_ALIGN@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x9]
	b	LBB0_11
LBB0_7:
	str	x22, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_error
	b	LBB0_1
LBB0_8:
Lloh10:
	adrp	x8, _WLCORE_RX_BUF_PADDED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WLCORE_RX_BUF_PADDED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_10
; %bb.9:
	mov	w25, #0
Lloh13:
	adrp	x8, _RX_BUF_ALIGN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RX_BUF_ALIGN@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	b	LBB0_11
LBB0_10:
	mov	w25, #0
	mov	x8, #0
LBB0_11:
	ldr	x9, [x20]
Lloh16:
	adrp	x10, _WL12XX_RX_CLASS_LOGGER@GOTPAGE
Lloh17:
	ldr	x10, [x10, _WL12XX_RX_CLASS_LOGGER@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.12:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x8, w22
	sub	x2, x8, #24
	add	x1, x20, #96
	mov	x0, x19
	bl	_wl12xx_copy_fwlog
	mov	w23, #0
	b	LBB0_3
LBB0_13:
	ldr	w9, [x20, #8]
Lloh19:
	adrp	x10, _WL1271_RX_DESC_DECRYPT_FAIL@GOTPAGE
Lloh20:
	ldr	x10, [x10, _WL1271_RX_DESC_DECRYPT_FAIL@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
	add	x19, x20, #96
	add	x21, x19, x8, lsl #2
Lloh22:
	adrp	x8, _WL1271_RX_DESC_STATUS_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WL1271_RX_DESC_STATUS_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	and	w1, w8, w9
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_wl1271_warning
Lloh27:
	adrp	x8, _DEBUG_RX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DEBUG_RX@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _DEBUG_CMD@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DEBUG_CMD@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	w0, [x21, #4]
	bl	_ieee80211_hdrlen
	mov	x1, x0
	mov	x0, x23
	bl	_min
	mov	x3, x0
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_wl1271_dump
	b	LBB0_1
LBB0_15:
	add	w0, w25, w23
Lloh35:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	___dev_alloc_skb
	cbz	x0, LBB0_19
; %bb.16:
	mov	x22, x0
	mov	x1, x25
	bl	_skb_reserve
	add	x1, x20, #96
	mov	x0, x22
	mov	x2, x23
	bl	_skb_put_data
Lloh38:
	adrp	x8, _WLCORE_RX_BUF_PADDED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _WLCORE_RX_BUF_PADDED@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_18
; %bb.17:
Lloh41:
	adrp	x8, _RX_BUF_ALIGN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _RX_BUF_ALIGN@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_skb_pull
LBB0_18:
	ldr	w8, [x20, #12]
	str	w8, [x21]
	ldr	x26, [x22, #8]
	ldr	w0, [x26, #4]
	bl	_ieee80211_is_beacon
	mov	x24, x0
	ldr	w0, [x26, #4]
	bl	_ieee80211_is_data_present
	cmp	x0, #0
	cset	w23, ne
	mov	x0, x22
	bl	_IEEE80211_SKB_RXCB
	mov	x25, x0
	ldr	w0, [x26, #4]
	bl	_ieee80211_is_probe_resp
	mov	x4, x0
	cmp	x24, #0
	cset	w3, ne
Lloh44:
	adrp	x8, l_.str.5@PAGE
Lloh45:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh46:
	adrp	x9, l_.str.6@PAGE
Lloh47:
	add	x9, x9, l_.str.6@PAGEOFF
	csel	x24, x9, x8, eq
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	bl	_wl1271_rx_status
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_wlcore_hw_set_rx_csum
	ldr	w0, [x26]
	bl	_le16_to_cpu
Lloh48:
	adrp	x8, _IEEE80211_SCTL_SEQ@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IEEE80211_SCTL_SEQ@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh51:
	adrp	x9, _DEBUG_RX@GOTPAGE
Lloh52:
	ldr	x9, [x9, _DEBUG_RX@GOTPAGEOFF]
	asr	w5, w8, #4
Lloh53:
	ldr	w0, [x9]
	ldr	x8, [x22]
	ldr	x9, [x20, #16]
	sub	x3, x8, x9
	ldr	w6, [x21]
Lloh54:
	adrp	x1, l_.str.4@PAGE
Lloh55:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x22
	mov	x4, x24
	bl	_wl1271_debug
	add	x0, x19, #8
	mov	x1, x22
	bl	_skb_queue_tail
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
	b	LBB0_3
LBB0_19:
Lloh56:
	adrp	x0, l_.str.3@PAGE
Lloh57:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_wl1271_error
Lloh58:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid packet arrived from HW. length %d"

	.comm	_WLCORE_RX_BUF_UNALIGNED,4,2    ; @WLCORE_RX_BUF_UNALIGNED
	.comm	_RX_BUF_ALIGN,4,2               ; @RX_BUF_ALIGN
	.comm	_WLCORE_RX_BUF_PADDED,4,2       ; @WLCORE_RX_BUF_PADDED
	.comm	_WL12XX_RX_CLASS_LOGGER,8,3     ; @WL12XX_RX_CLASS_LOGGER
	.comm	_WL1271_RX_DESC_DECRYPT_FAIL,4,2 ; @WL1271_RX_DESC_DECRYPT_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"corrupted packet in RX: status: 0x%x len: %d"

	.comm	_WL1271_RX_DESC_STATUS_MASK,4,2 ; @WL1271_RX_DESC_STATUS_MASK
	.comm	_DEBUG_RX,4,2                   ; @DEBUG_RX
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
l_.str.2:                               ; @.str.2
	.asciz	"PKT: "

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't allocate RX frame"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE80211_SCTL_SEQ,4,2         ; @IEEE80211_SCTL_SEQ
l_.str.4:                               ; @.str.4
	.asciz	"rx skb 0x%p: %d B %s seq %d hlid %d"

l_.str.5:                               ; @.str.5
	.asciz	"beacon"

l_.str.6:                               ; @.str.6
	.space	1

	.no_dead_strip	_wl1271_rx_handle_data
.subsections_via_symbols
