	.file	"extr_rtl871x_recv.c_sta2sta_data_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sta2sta_data_frame, @function
sta2sta_data_frame:
.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
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, r13
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 40[rsi]
	mov	r15d, DWORD PTR _SUCCESS[rip]
	mov	QWORD PTR 16[rsp], rdx
	mov	QWORD PTR 24[rsp], rax
	call	get_bssid@PLT
	lea	rdi, 4[rbp]
	mov	r14, rax
	call	myid@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	r12, rax
	call	is_multicast_ether_addr@PLT
	mov	esi, DWORD PTR WIFI_ADHOC_STATE[rip]
	mov	rdi, r13
	mov	DWORD PTR 12[rsp], eax
	call	check_fwstate@PLT
	test	rax, rax
	jne	.L5
	mov	esi, DWORD PTR WIFI_ADHOC_MASTER_STATE[rip]
	mov	rdi, r13
	call	check_fwstate@PLT
	test	rax, rax
	je	.L38
.L5:
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, r12
	call	memcmp@PLT
	test	rax, rax
	jne	.L39
.L21:
	mov	r15d, DWORD PTR _FAIL[rip]
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L39:
	.cfi_restore_state
	mov	rsi, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rdi, r12
	call	memcmp@PLT
	mov	ecx, DWORD PTR 12[rsp]
	test	ecx, ecx
	jne	.L8
	test	rax, rax
	jne	.L21
.L8:
	mov	rdi, QWORD PTR 32[rbx]
	call	is_zero_ether_addr@PLT
	test	rax, rax
	jne	.L21
	mov	rdi, r14
	call	is_zero_ether_addr@PLT
	test	rax, rax
	jne	.L21
	mov	rdi, QWORD PTR 32[rbx]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rsi, r14
	call	memcmp@PLT
	test	rax, rax
	jne	.L21
	mov	r14, QWORD PTR [rbx]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L38:
	mov	esi, DWORD PTR WIFI_STATION_STATE[rip]
	mov	rdi, r13
	call	check_fwstate@PLT
	test	rax, rax
	je	.L12
	mov	rdi, QWORD PTR 32[rbx]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rsi, QWORD PTR [rbx]
	call	memcmp@PLT
	test	rax, rax
	jne	.L21
	mov	r14, QWORD PTR 32[rbx]
.L11:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L18
.L16:
	mov	rdi, rbp
	call	r8712_get_bcmc_stainfo@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	QWORD PTR [rcx], rax
.L20:
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR WIFI_MP_STATE[rip]
	mov	rdi, r13
	call	check_fwstate@PLT
	test	rax, rax
	je	.L21
	add	DWORD PTR 0[rbp], 1
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR WIFI_AP_STATE[rip]
	mov	rdi, r13
	call	check_fwstate@PLT
	test	rax, rax
	je	.L14
	mov	edx, DWORD PTR 12[rsp]
	mov	rdi, QWORD PTR 32[rbx]
	test	edx, edx
	jne	.L40
	mov	rsi, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	call	memcmp@PLT
	test	rax, rax
	jne	.L21
	mov	r14, QWORD PTR [rbx]
.L18:
	lea	rdi, 12[rbp]
	mov	rsi, r14
	call	r8712_get_stainfo@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	QWORD PTR [rcx], rax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L40:
	call	is_multicast_ether_addr@PLT
	test	eax, eax
	jne	.L16
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR WIFI_MP_STATE[rip]
	mov	rdi, r13
	call	check_fwstate@PLT
	test	rax, rax
	jne	.L41
	mov	r15d, DWORD PTR _FAIL[rip]
	xor	r14d, r14d
	jmp	.L11
.L41:
	mov	rdi, QWORD PTR 24[rsp]
	mov	r12d, DWORD PTR ETH_ALEN[rip]
	call	GetAddr1Ptr@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	edx, r12d
	mov	rsi, rax
	call	memcpy@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	r12d, DWORD PTR ETH_ALEN[rip]
	call	GetAddr2Ptr@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	edx, r12d
	mov	rsi, rax
	call	memcpy@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	r12d, DWORD PTR ETH_ALEN[rip]
	call	GetAddr3Ptr@PLT
	mov	rdi, QWORD PTR 32[rbx]
	mov	edx, r12d
	mov	rsi, rax
	call	memcpy@PLT
	mov	rsi, QWORD PTR 16[rbx]
	mov	rdi, QWORD PTR 24[rbx]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	call	memcpy@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rsi, QWORD PTR [rbx]
	call	memcpy@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	sta2sta_data_frame, .-sta2sta_data_frame
	.comm	_SUCCESS,4,4
	.comm	_FAIL,4,4
	.comm	WIFI_STATION_STATE,4,4
	.comm	WIFI_MP_STATE,4,4
	.comm	WIFI_AP_STATE,4,4
	.comm	WIFI_ADHOC_STATE,4,4
	.comm	WIFI_ADHOC_MASTER_STATE,4,4
	.comm	ETH_ALEN,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_rtl871x_recv.c_sta2sta_data_frame.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sta2sta_data_frame, %function
sta2sta_data_frame:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L38
	add	r9, r0, #8
	sub	sp, sp, #12
	mov	r5, r0
	mov	r0, r9
	mov	r4, r1
	ldr	fp, [r1, #20]
	ldr	r10, [r3]
	str	r2, [sp, #4]
	bl	get_bssid
	mov	r8, r0
	add	r0, r5, #4
	bl	myid
	mov	r6, r0
	ldr	r0, [r4, #8]
	bl	is_multicast_ether_addr
	ldr	r3, .L38+4
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, r9
	bl	check_fwstate
	cmp	r0, #0
	beq	.L2
.L5:
	ldr	fp, .L38+8
	mov	r0, r6
	ldr	r2, [fp]
	ldr	r1, [r4]
	str	r2, [sp]
	bl	memcmp
	cmp	r0, #0
	ldr	r2, [sp]
	beq	.L19
	mov	r0, r6
	ldr	r1, [r4, #8]
	bl	memcmp
	subs	r0, r0, #0
	movne	r0, #1
	cmp	r7, #0
	movne	r0, #0
	cmp	r0, #0
	bne	.L19
	ldr	r0, [r4, #16]
	bl	is_zero_ether_addr
	cmp	r0, #0
	bne	.L19
	mov	r0, r8
	bl	is_zero_ether_addr
	cmp	r0, #0
	bne	.L19
	mov	r1, r8
	ldr	r2, [fp]
	ldr	r0, [r4, #16]
	bl	memcmp
	cmp	r0, #0
	bne	.L19
	ldr	r8, [r4]
.L10:
	cmp	r7, #0
	beq	.L16
.L14:
	mov	r0, r5
	bl	r8712_get_bcmc_stainfo
	ldr	r3, [sp, #4]
	str	r0, [r3]
.L18:
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L38+12
	mov	r0, r9
	ldr	r1, [r3]
	bl	check_fwstate
	cmp	r0, #0
	ldrne	r3, [r5]
	addne	r3, r3, #1
	strne	r3, [r5]
.L19:
	ldr	r3, .L38+16
	ldr	r10, [r3]
.L1:
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L38+20
	mov	r0, r9
	ldr	r1, [r3]
	bl	check_fwstate
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L38+24
	mov	r0, r9
	ldr	r1, [r3]
	bl	check_fwstate
	cmp	r0, #0
	beq	.L11
	ldr	r3, .L38+8
	ldr	r8, [r4, #16]
	ldr	r1, [r4]
	mov	r0, r8
	ldr	r2, [r3]
	bl	memcmp
	cmp	r0, #0
	beq	.L10
	b	.L19
.L11:
	ldr	r3, .L38+28
	mov	r0, r9
	ldr	r1, [r3]
	bl	check_fwstate
	cmp	r0, #0
	beq	.L12
	cmp	r7, #0
	ldr	r0, [r4, #16]
	bne	.L36
	ldr	r3, .L38+8
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	bl	memcmp
	cmp	r0, #0
	ldreq	r8, [r4]
	bne	.L19
.L16:
	mov	r1, r8
	add	r0, r5, #12
	bl	r8712_get_stainfo
	ldr	r3, [sp, #4]
	str	r0, [r3]
	b	.L18
.L12:
	ldr	r3, .L38+12
	mov	r0, r9
	ldr	r1, [r3]
	bl	check_fwstate
	cmp	r0, #0
	bne	.L37
	ldr	r3, .L38+16
	mov	r8, r0
	ldr	r10, [r3]
	b	.L10
.L36:
	bl	is_multicast_ether_addr
	cmp	r0, #0
	bne	.L14
	b	.L19
.L37:
	ldr	r3, [r4, #8]
	mov	r0, fp
	str	r3, [sp]
	bl	GetAddr1Ptr
	ldr	r6, .L38+8
	ldr	r3, [sp]
	mov	r1, r0
	ldr	r2, [r6]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [r4]
	mov	r0, fp
	str	r3, [sp]
	bl	GetAddr2Ptr
	ldr	r3, [sp]
	mov	r1, r0
	ldr	r2, [r6]
	mov	r0, r3
	bl	memcpy
	mov	r0, fp
	ldr	fp, [r4, #16]
	bl	GetAddr3Ptr
	ldr	r2, [r6]
	mov	r1, r0
	mov	r0, fp
	bl	memcpy
	ldr	r2, [r6]
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	bl	memcpy
	ldr	r2, [r6]
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	memcpy
	b	.L10
.L39:
	.align	2
.L38:
	.word	_SUCCESS
	.word	WIFI_ADHOC_STATE
	.word	ETH_ALEN
	.word	WIFI_MP_STATE
	.word	_FAIL
	.word	WIFI_ADHOC_MASTER_STATE
	.word	WIFI_STATION_STATE
	.word	WIFI_AP_STATE
	.size	sta2sta_data_frame, .-sta2sta_data_frame
	.comm	_SUCCESS,4,4
	.comm	_FAIL,4,4
	.comm	WIFI_STATION_STATE,4,4
	.comm	WIFI_MP_STATE,4,4
	.comm	WIFI_AP_STATE,4,4
	.comm	WIFI_ADHOC_STATE,4,4
	.comm	WIFI_ADHOC_MASTER_STATE,4,4
	.comm	ETH_ALEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
