	.file	"extr_rx.c_wl1271_rx_handle_data.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"beacon"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Invalid packet arrived from HW. length %d"
	.align 8
.LC3:
	.string	"corrupted packet in RX: status: 0x%x len: %d"
	.section	.rodata.str1.1
.LC4:
	.string	"PKT: "
.LC5:
	.string	"Couldn't allocate RX frame"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"rx skb 0x%p: %d B %s seq %d hlid %d"
	.text
	.p2align 4
	.type	wl1271_rx_handle_data, @function
wl1271_rx_handle_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 16[rdi]
	mov	QWORD PTR [rsp], r8
	call	unlikely@PLT
	test	rax, rax
	je	.L2
.L21:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, r13d
	mov	rsi, rbx
	mov	rdi, rbp
	call	wlcore_hw_get_rx_packet_len@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L23
	xor	eax, eax
	cmp	DWORD PTR WLCORE_RX_BUF_UNALIGNED[rip], r12d
	mov	r8d, DWORD PTR RX_BUF_ALIGN[rip]
	je	.L6
	xor	eax, eax
	xor	r8d, r8d
	cmp	DWORD PTR WLCORE_RX_BUF_PADDED[rip], r12d
	je	.L24
.L6:
	mov	rcx, QWORD PTR WL12XX_RX_CLASS_LOGGER[rip]
	cmp	QWORD PTR [rbx], rcx
	je	.L25
	mov	esi, DWORD PTR 8[rbx]
	mov	r13d, esi
	and	r13d, DWORD PTR WL1271_RX_DESC_DECRYPT_FAIL[rip]
	jne	.L26
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	edi, [r8+r15]
	mov	DWORD PTR 12[rsp], r8d
	call	__dev_alloc_skb@PLT
	mov	r8d, DWORD PTR 12[rsp]
	test	rax, rax
	mov	r14, rax
	je	.L27
	mov	esi, r8d
	mov	rdi, rax
	call	skb_reserve@PLT
	mov	esi, r15d
	mov	rdi, r14
	call	skb_put@PLT
	lea	rsi, 96[rbx]
	mov	edx, r15d
	mov	rdi, rax
	call	memcpy@PLT
	cmp	DWORD PTR WLCORE_RX_BUF_PADDED[rip], r12d
	je	.L28
.L10:
	mov	eax, DWORD PTR 12[rbx]
	mov	rcx, QWORD PTR [rsp]
	mov	r12, QWORD PTR 8[r14]
	mov	DWORD PTR [rcx], eax
	mov	edi, DWORD PTR 4[r12]
	call	ieee80211_is_beacon@PLT
	test	rax, rax
	je	.L29
	mov	edi, DWORD PTR 4[r12]
	call	ieee80211_is_data_present@PLT
	test	rax, rax
	jne	.L30
	mov	rdi, r14
	call	IEEE80211_SKB_RXCB@PLT
	mov	ecx, 1
	mov	rsi, rbx
	mov	rdi, rbp
	mov	edx, eax
	call	wl1271_rx_status@PLT
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	call	wlcore_hw_set_rx_csum@PLT
	mov	edi, DWORD PTR [r12]
	call	le16_to_cpu@PLT
	and	eax, DWORD PTR IEEE80211_SCTL_SEQ[rip]
	lea	r8, .LC1[rip]
	mov	r9d, eax
	mov	rax, QWORD PTR [rsp]
	sar	r9d, 4
	mov	eax, DWORD PTR [rax]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	movsx	rax, DWORD PTR RX_BUF_ALIGN[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, r15d
	and	esi, DWORD PTR WL1271_RX_DESC_STATUS_MASK[rip]
	lea	rbp, 96[rbx+rax*4]
	lea	rdi, .LC3[rip]
	call	wl1271_warning@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	ieee80211_hdrlen@PLT
	mov	edi, r15d
	mov	esi, eax
	call	min@PLT
	mov	edi, DWORD PTR DEBUG_RX[rip]
	lea	rdx, 96[rbx]
	or	edi, DWORD PTR DEBUG_CMD[rip]
	mov	ecx, eax
	lea	rsi, .LC4[rip]
	call	wl1271_dump@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, r13d
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	wl1271_error@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR 4[r12]
	call	ieee80211_is_data_present@PLT
	mov	rdi, r14
	test	rax, rax
	je	.L31
	call	IEEE80211_SKB_RXCB@PLT
	xor	ecx, ecx
	mov	rsi, rbx
	mov	rdi, rbp
	mov	edx, eax
	mov	r13d, 1
	call	wl1271_rx_status@PLT
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	call	wlcore_hw_set_rx_csum@PLT
	mov	edi, DWORD PTR [r12]
	call	le16_to_cpu@PLT
	and	eax, DWORD PTR IEEE80211_SCTL_SEQ[rip]
	lea	r8, .LC0[rip]
	mov	r9d, eax
	mov	rax, QWORD PTR [rsp]
	sar	r9d, 4
	mov	eax, DWORD PTR [rax]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L31:
	call	IEEE80211_SKB_RXCB@PLT
	xor	ecx, ecx
	mov	rsi, rbx
	mov	rdi, rbp
	mov	edx, eax
	call	wl1271_rx_status@PLT
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	call	wlcore_hw_set_rx_csum@PLT
	mov	edi, DWORD PTR [r12]
	call	le16_to_cpu@PLT
	and	eax, DWORD PTR IEEE80211_SCTL_SEQ[rip]
	lea	r8, .LC0[rip]
	mov	r9d, eax
	mov	rax, QWORD PTR [rsp]
	sar	r9d, 4
	mov	eax, DWORD PTR [rax]
.L13:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rcx, QWORD PTR [r14]
	mov	edi, DWORD PTR DEBUG_RX[rip]
	mov	rdx, r14
	push	rax
	.cfi_def_cfa_offset 96
	sub	rcx, QWORD PTR 16[rbx]
	lea	rsi, .LC6[rip]
	call	wl1271_debug@PLT
	lea	rdi, 8[rbp]
	mov	rsi, r14
	call	skb_queue_tail@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, rbp
	call	queue_work@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, r14
	mov	r13d, 1
	call	IEEE80211_SKB_RXCB@PLT
	mov	ecx, 1
	mov	rsi, rbx
	mov	rdi, rbp
	mov	edx, eax
	call	wl1271_rx_status@PLT
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	call	wlcore_hw_set_rx_csum@PLT
	mov	edi, DWORD PTR [r12]
	call	le16_to_cpu@PLT
	and	eax, DWORD PTR IEEE80211_SCTL_SEQ[rip]
	lea	r8, .LC1[rip]
	mov	r9d, eax
	mov	rax, QWORD PTR [rsp]
	sar	r9d, 4
	mov	eax, DWORD PTR [rax]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	wl1271_error@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	movsx	rdx, r13d
	lea	rsi, 96[rbx]
	mov	rdi, rbp
	xor	r13d, r13d
	sub	rdx, 24
	call	wl12xx_copy_fwlog@PLT
	lea	rdi, 12[rbp]
	call	wake_up_interruptible@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	esi, DWORD PTR RX_BUF_ALIGN[rip]
	mov	rdi, r14
	call	skb_pull@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	wl1271_rx_handle_data, .-wl1271_rx_handle_data
	.comm	WLCORE_RX_BUF_UNALIGNED,4,4
	.comm	WLCORE_RX_BUF_PADDED,4,4
	.comm	WL12XX_RX_CLASS_LOGGER,8,8
	.comm	WL1271_RX_DESC_STATUS_MASK,4,4
	.comm	WL1271_RX_DESC_DECRYPT_FAIL,4,4
	.comm	RX_BUF_ALIGN,4,4
	.comm	IEEE80211_SCTL_SEQ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DEBUG_RX,4,4
	.comm	DEBUG_CMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rx.c_wl1271_rx_handle_data.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"beacon\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Invalid packet arrived from HW. length %d\000"
	.align	2
.LC3:
	.ascii	"corrupted packet in RX: status: 0x%x len: %d\000"
	.align	2
.LC4:
	.ascii	"PKT: \000"
	.align	2
.LC5:
	.ascii	"Couldn't allocate RX frame\000"
	.align	2
.LC6:
	.ascii	"rx skb 0x%p: %d B %s seq %d hlid %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl1271_rx_handle_data, %function
wl1271_rx_handle_data:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	sub	sp, sp, #16
	ldr	r0, [r0, #16]
	mov	r5, r1
	mov	r8, r2
	mov	r7, r3
	bl	unlikely
	subs	r4, r0, #0
	beq	.L2
.L15:
	ldr	r3, .L23
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r2, r8
	mov	r1, r5
	mov	r0, r6
	bl	wlcore_hw_get_rx_packet_len
	subs	r9, r0, #0
	beq	.L17
	ldr	r3, .L23+4
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L18
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r3, r7
	moveq	r10, r4
	movne	r3, r4
	movne	r10, r4
	ldreq	r3, .L23+12
	ldreq	r3, [r3]
.L6:
	ldr	r2, .L23+16
	ldr	r1, [r5]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L19
	ldr	r2, .L23+20
	ldr	r1, [r5, #4]
	ldr	r2, [r2]
	tst	r1, r2
	bne	.L20
	ldr	r3, .L23+24
	add	r0, r10, r9
	ldr	r1, [r3]
	bl	__dev_alloc_skb
	subs	r8, r0, #0
	beq	.L21
	mov	r1, r10
	bl	skb_reserve
	mov	r1, r9
	mov	r0, r8
	bl	skb_put
	mov	r2, r9
	add	r1, r5, #64
	bl	memcpy
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L22
.L10:
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #48]
	ldr	r9, [r8, #4]
	str	r3, [r2]
	ldr	r0, [r9, #4]
	bl	ieee80211_is_beacon
	mov	r7, r0
	ldr	r0, [r9, #4]
	bl	ieee80211_is_data_present
	mov	r4, r0
	mov	r0, r8
	subs	r4, r4, #0
	movne	r4, #1
	bl	IEEE80211_SKB_RXCB
	subs	r3, r7, #0
	movne	r3, #1
	mov	r2, r0
	mov	r1, r5
	mov	r0, r6
	bl	wl1271_rx_status
	mov	r2, r8
	mov	r1, r5
	mov	r0, r6
	bl	wlcore_hw_set_rx_csum
	ldr	r0, [r9]
	bl	le16_to_cpu
	ldr	r3, .L23+28
	ldr	r1, .L23+32
	cmp	r7, #0
	movne	r7, r3
	moveq	r7, r1
	ldr	r2, .L23+36
	ldr	r1, [sp, #48]
	ldr	r2, [r2]
	ldr	ip, [r8]
	and	r2, r2, r0
	ldr	r3, [r5, #12]
	ldr	r1, [r1]
	asr	r2, r2, #4
	ldr	r0, .L23+40
	str	r2, [sp, #4]
	str	r7, [sp]
	mov	r2, r8
	sub	r3, ip, r3
	ldr	r0, [r0]
	str	r1, [sp, #8]
	ldr	r1, .L23+44
	bl	wl1271_debug
	mov	r1, r8
	add	r0, r6, #8
	bl	skb_queue_tail
	mov	r1, r6
	ldr	r0, [r6, #4]
	bl	queue_work
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r2, .L23+12
	mov	r3, r4
	ldr	r10, [r2]
	b	.L6
.L20:
	ldr	r2, .L23+48
	add	r3, r3, #16
	ldr	r0, [r2]
	mov	r2, r9
	and	r1, r1, r0
	ldr	r0, .L23+52
	add	r4, r5, r3, lsl #2
	bl	wl1271_warning
	ldr	r3, .L23+40
	ldr	r2, .L23+56
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [r4, #4]
	orr	r4, r3, r2
	bl	ieee80211_hdrlen
	mov	r1, r0
	mov	r0, r9
	bl	min
	ldr	r1, .L23+60
	mov	r3, r0
	add	r2, r5, #64
	mov	r0, r4
	bl	wl1271_dump
	b	.L15
.L17:
	mov	r1, r8
	ldr	r0, .L23+64
	bl	wl1271_error
	ldr	r3, .L23
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L21:
	ldr	r0, .L23+68
	bl	wl1271_error
	ldr	r3, .L23+72
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L19:
	mov	r0, r6
	sub	r2, r8, #16
	add	r1, r5, #64
	bl	wl12xx_copy_fwlog
	add	r0, r6, #12
	bl	wake_up_interruptible
	b	.L1
.L22:
	ldr	r3, .L23+12
	mov	r0, r8
	ldr	r1, [r3]
	bl	skb_pull
	b	.L10
.L24:
	.align	2
.L23:
	.word	EINVAL
	.word	WLCORE_RX_BUF_UNALIGNED
	.word	WLCORE_RX_BUF_PADDED
	.word	RX_BUF_ALIGN
	.word	WL12XX_RX_CLASS_LOGGER
	.word	WL1271_RX_DESC_DECRYPT_FAIL
	.word	GFP_KERNEL
	.word	.LC0
	.word	.LC1
	.word	IEEE80211_SCTL_SEQ
	.word	DEBUG_RX
	.word	.LC6
	.word	WL1271_RX_DESC_STATUS_MASK
	.word	.LC3
	.word	DEBUG_CMD
	.word	.LC4
	.word	.LC2
	.word	.LC5
	.word	ENOMEM
	.size	wl1271_rx_handle_data, .-wl1271_rx_handle_data
	.comm	WLCORE_RX_BUF_UNALIGNED,4,4
	.comm	WLCORE_RX_BUF_PADDED,4,4
	.comm	WL12XX_RX_CLASS_LOGGER,4,4
	.comm	WL1271_RX_DESC_STATUS_MASK,4,4
	.comm	WL1271_RX_DESC_DECRYPT_FAIL,4,4
	.comm	RX_BUF_ALIGN,4,4
	.comm	IEEE80211_SCTL_SEQ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DEBUG_RX,4,4
	.comm	DEBUG_CMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
