	.file	"extr_sta_rx.c_mwifiex_process_sta_rx_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"wrong rx packet: len=%d, rx_pkt_offset=%d, rx_pkt_length=%d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Rx of mgmt packet failed"
	.text
	.p2align 4
	.globl	mwifiex_process_sta_rx_packet
	.type	mwifiex_process_sta_rx_packet, @function
mwifiex_process_sta_rx_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rdi
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -56
	mov	r11, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR ETH_ALEN[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L45:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L45
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L46
.L4:
	mov	r13, QWORD PTR 8[r12]
	mov	QWORD PTR -88[rbp], r11
	mov	QWORD PTR -72[rbp], rsp
	mov	edi, DWORD PTR 36[r13]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 32[r13]
	mov	r14, rax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 28[r13]
	mov	rbx, rax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 24[r13]
	mov	QWORD PTR -80[rbp], rax
	call	le16_to_cpu@PLT
	mov	r9, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR [r12]
	mov	QWORD PTR -96[rbp], rax
	mov	r11, QWORD PTR -88[rbp]
	lea	eax, [r9+rbx]
	cmp	eax, ecx
	jg	.L47
	cmp	DWORD PTR PKT_TYPE_MGMT[rip], r14d
	je	.L48
	mov	rdi, r15
	call	IS_11N_ENABLED@PLT
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR 16[r15]
	mov	edi, DWORD PTR [rax]
	call	ISSUPP_TDLS_ENABLED@PLT
	test	rax, rax
	je	.L10
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR MWIFIEX_RXPD_FLAGS_TDLS_PACKET[rip], eax
	jne	.L10
.L13:
	movsx	rbx, ebx
	mov	edi, DWORD PTR 24[r15]
	add	rbx, r13
	mov	esi, DWORD PTR 4[rbx]
	call	ether_addr_equal_unaligned@PLT
	test	eax, eax
	je	.L10
	mov	rdi, r15
	call	mwifiex_queuing_ra_based@PLT
	test	rax, rax
	je	.L14
.L18:
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	esi, DWORD PTR [rbx]
	mov	rdi, QWORD PTR -72[rbp]
	call	memcpy@PLT
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR MWIFIEX_RXPD_FLAGS_TDLS_PACKET[rip], eax
	je	.L43
	mov	rdx, QWORD PTR 8[r13]
	cmp	rdx, QWORD PTR MAX_NUM_TID[rip]
	jb	.L49
.L19:
	mov	rcx, QWORD PTR -72[rbp]
	mov	esi, DWORD PTR -96[rbp]
	mov	r9, r12
	mov	r8d, r14d
	mov	rdi, r15
	call	mwifiex_11n_rx_reorder_pkt@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L22
	cmp	DWORD PTR PKT_TYPE_BAR[rip], r14d
	jne	.L1
.L23:
	mov	rdi, r12
	call	dev_kfree_skb_any@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, r12
	mov	rdi, r15
	xor	r13d, r13d
	call	mwifiex_process_rx_packet@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L50
	lea	rsp, -40[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	.cfi_restore_state
	mov	esi, DWORD PTR ERROR[rip]
	mov	rdi, r11
	mov	r8d, ebx
	xor	eax, eax
	lea	rdx, .LC0[rip]
	xor	r13d, r13d
	call	mwifiex_dbg@PLT
	add	DWORD PTR 8[r15], 1
	mov	rdi, r12
	call	dev_kfree_skb_any@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L46:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 16[r15]
	mov	edi, DWORD PTR [rax]
	call	ISSUPP_TDLS_ENABLED@PLT
	test	rax, rax
	je	.L17
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR MWIFIEX_RXPD_FLAGS_TDLS_PACKET[rip], eax
	jne	.L18
.L17:
	cmp	DWORD PTR PKT_TYPE_BAR[rip], r14d
	je	.L21
	mov	rax, QWORD PTR 8[r13]
	cmp	rax, QWORD PTR MAX_NUM_TID[rip]
	jb	.L51
.L21:
	mov	esi, DWORD PTR 12[r15]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rdi, QWORD PTR -72[rbp]
	call	memcpy@PLT
.L43:
	mov	rdx, QWORD PTR 8[r13]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rsi, r12
	mov	rdi, r15
	mov	QWORD PTR -72[rbp], r11
	call	mwifiex_process_mgmt_packet@PLT
	mov	r11, QWORD PTR -72[rbp]
	test	eax, eax
	mov	r13d, eax
	je	.L23
	mov	esi, DWORD PTR DATA[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r11
	xor	eax, eax
	call	mwifiex_dbg@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r12
	call	dev_kfree_skb_any@PLT
	add	DWORD PTR 8[r15], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L51:
	mov	rdx, QWORD PTR [r15]
	mov	ebx, DWORD PTR -96[rbp]
	mov	DWORD PTR [rdx+rax*4], ebx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L49:
	mov	rsi, QWORD PTR -72[rbp]
	mov	rdi, r15
	call	mwifiex_get_sta_entry@PLT
	test	rax, rax
	je	.L20
	mov	rdx, QWORD PTR 8[r13]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR 24[r13]
	lea	rbx, [rax+rdx*8]
	call	le16_to_cpu@PLT
	mov	QWORD PTR [rbx], rax
.L20:
	mov	edx, DWORD PTR 20[r13]
	mov	ecx, DWORD PTR 16[r13]
	mov	rdi, r15
	mov	rsi, QWORD PTR -72[rbp]
	call	mwifiex_auto_tdls_update_peer_signal@PLT
	mov	rdx, QWORD PTR 8[r13]
	jmp	.L19
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mwifiex_process_sta_rx_packet, .-mwifiex_process_sta_rx_packet
	.comm	PKT_TYPE_MGMT,4,4
	.comm	PKT_TYPE_BAR,4,4
	.comm	MWIFIEX_RXPD_FLAGS_TDLS_PACKET,4,4
	.comm	MAX_NUM_TID,8,8
	.comm	ETH_ALEN,4,4
	.comm	ERROR,4,4
	.comm	DATA,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_sta_rx.c_mwifiex_process_sta_rx_packet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wrong rx packet: len=%d, rx_pkt_offset=%d, rx_pkt_l"
	.ascii	"ength=%d\012\000"
	.align	2
.LC1:
	.ascii	"Rx of mgmt packet failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mwifiex_process_sta_rx_packet
	.syntax unified
	.arm
	.fpu softvfp
	.type	mwifiex_process_sta_rx_packet, %function
mwifiex_process_sta_rx_packet:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	mov	r4, r0
	ldr	r9, .L43
	ldr	r5, [r1, #4]
	ldr	r3, [r9]
	ldr	r0, [r5, #28]
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L43+4
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r3, [r4, #12]
	str	r3, [fp, #-52]
	bl	le16_to_cpu
	mov	r8, r0
	ldr	r0, [r5, #24]
	bl	le16_to_cpu
	mov	r7, r0
	ldr	r0, [r5, #20]
	bl	le16_to_cpu
	mov	r10, r0
	ldr	r0, [r5, #16]
	bl	le16_to_cpu
	ldr	r3, [r6]
	add	r1, r7, r10
	add	r2, sp, #8
	cmp	r1, r3
	str	r0, [fp, #-56]
	str	r2, [fp, #-48]
	bgt	.L39
	ldr	r3, .L43+8
	mov	r0, r4
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L40
	bl	IS_11N_ENABLED
	cmp	r0, #0
	bne	.L10
	ldr	r3, [r4, #12]
	ldr	r0, [r3]
	bl	ISSUPP_TDLS_ENABLED
	cmp	r0, #0
	beq	.L7
	ldr	r3, .L43+12
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L7
.L10:
	add	r3, r5, r7
	ldr	r1, [r3, #4]
	ldr	r0, [r4, #16]
	bl	ether_addr_equal_unaligned
	cmp	r0, #0
	beq	.L7
	mov	r0, r4
	bl	mwifiex_queuing_ra_based
	cmp	r0, #0
	beq	.L11
	ldr	r3, .L43+12
.L15:
	ldr	r2, [r9]
	ldr	r1, [r5, r7]
	ldr	r0, [fp, #-48]
	str	r3, [fp, #-52]
	bl	memcpy
	ldr	r3, [fp, #-52]
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L37
	ldr	r3, .L43+16
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L41
.L16:
	mov	r0, r4
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-56]
	str	r6, [sp, #4]
	str	r8, [sp]
	bl	mwifiex_11n_rx_reorder_pkt
	subs	r5, r0, #0
	bne	.L19
	ldr	r3, .L43+20
	ldr	r3, [r3]
	cmp	r3, r8
	bne	.L1
.L20:
	mov	r0, r6
	bl	dev_kfree_skb_any
	b	.L1
.L7:
	mov	r1, r6
	mov	r0, r4
	bl	mwifiex_process_rx_packet
	mov	r5, #0
.L1:
	ldr	r3, .L43+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L42
	mov	r0, r5
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	stm	sp, {r7, r10}
	ldr	r1, .L43+24
	ldr	r2, .L43+28
	ldr	r1, [r1]
	ldr	r0, [fp, #-52]
	bl	mwifiex_dbg
	ldr	r3, [r4, #4]
	mov	r0, r6
	add	r3, r3, #1
	str	r3, [r4, #4]
	bl	dev_kfree_skb_any
	mov	r5, #0
	b	.L1
.L11:
	ldr	r3, [r4, #12]
	ldr	r0, [r3]
	bl	ISSUPP_TDLS_ENABLED
	cmp	r0, #0
	beq	.L14
	ldr	r3, .L43+12
	ldr	r1, [r5]
	ldr	r2, [r3]
	tst	r1, r2
	bne	.L15
.L14:
	ldr	r3, .L43+20
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L18
	ldr	r2, .L43+16
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	ldrcc	r2, [r4]
	ldrcc	r1, [fp, #-56]
	strcc	r1, [r2, r3, lsl #2]
.L18:
	ldr	r2, [r9]
	ldr	r1, [r4, #8]
	ldr	r0, [fp, #-48]
	bl	memcpy
.L37:
	ldr	r2, [r5, #4]
	b	.L16
.L40:
	mov	r1, r6
	bl	mwifiex_process_mgmt_packet
	subs	r5, r0, #0
	beq	.L20
	ldr	r3, .L43+32
	ldr	r0, [fp, #-52]
	ldr	r1, [r3]
	ldr	r2, .L43+36
	bl	mwifiex_dbg
	b	.L20
.L19:
	mov	r0, r6
	bl	dev_kfree_skb_any
	ldr	r3, [r4, #4]
	add	r3, r3, #1
	str	r3, [r4, #4]
	b	.L1
.L41:
	mov	r0, r4
	ldr	r1, [fp, #-48]
	bl	mwifiex_get_sta_entry
	subs	r3, r0, #0
	beq	.L17
	ldr	r0, [r5, #16]
	ldr	r7, [r3]
	ldr	r9, [r5, #4]
	bl	le16_to_cpu
	str	r0, [r7, r9, lsl #2]
.L17:
	ldr	r2, [r5, #12]
	mov	r0, r4
	ldr	r3, [r5, #8]
	ldr	r1, [fp, #-48]
	bl	mwifiex_auto_tdls_update_peer_signal
	ldr	r2, [r5, #4]
	b	.L16
.L42:
	bl	__stack_chk_fail
.L44:
	.align	2
.L43:
	.word	ETH_ALEN
	.word	.LC2
	.word	PKT_TYPE_MGMT
	.word	MWIFIEX_RXPD_FLAGS_TDLS_PACKET
	.word	MAX_NUM_TID
	.word	PKT_TYPE_BAR
	.word	ERROR
	.word	.LC0
	.word	DATA
	.word	.LC1
	.size	mwifiex_process_sta_rx_packet, .-mwifiex_process_sta_rx_packet
	.comm	PKT_TYPE_MGMT,4,4
	.comm	PKT_TYPE_BAR,4,4
	.comm	MWIFIEX_RXPD_FLAGS_TDLS_PACKET,4,4
	.comm	MAX_NUM_TID,4,4
	.comm	ETH_ALEN,4,4
	.comm	ERROR,4,4
	.comm	DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
