	.file	"extr_rt2800lib.c_rt2800_config_filter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rt2800_config_filter
	.type	rt2800_config_filter, @function
rt2800_config_filter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR RX_FILTER_CFG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rbp, 4[rsp]
	mov	rdx, rbp
	call	rt2800_register_read@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_CRC_ERROR[rip]
	xor	edx, edx
	mov	rdi, rbp
	test	DWORD PTR FIF_FCSFAIL[rip], ebx
	sete	dl
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_PHY_ERROR[rip]
	xor	edx, edx
	mov	rdi, rbp
	test	DWORD PTR FIF_PLCPFAIL[rip], ebx
	sete	dl
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_NOT_TO_ME[rip]
	xor	edx, edx
	mov	rdi, rbp
	test	DWORD PTR FIF_PROMISC_IN_BSS[rip], ebx
	sete	dl
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_NOT_MY_BSSD[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_VER_ERROR[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_MULTICAST[rip]
	xor	edx, edx
	mov	rdi, rbp
	test	DWORD PTR FIF_ALLMULTI[rip], ebx
	sete	dl
	xor	r12d, r12d
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_BROADCAST[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_DUPLICATE[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	test	DWORD PTR FIF_CONTROL[rip], ebx
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_CF_END_ACK[rip]
	mov	rdi, rbp
	sete	r12b
	mov	edx, r12d
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_CF_END[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_ACK[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_CTS[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_RTS[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_PSPOLL[rip]
	xor	edx, edx
	mov	rdi, rbp
	test	DWORD PTR FIF_PSPOLL[rip], ebx
	sete	dl
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_BA[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_BAR[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	mov	esi, DWORD PTR RX_FILTER_CFG_DROP_CNTL[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	rt2x00_set_field32@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR RX_FILTER_CFG[rip]
	mov	rdi, r13
	call	rt2800_register_write@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rt2800_config_filter, .-rt2800_config_filter
	.comm	RX_FILTER_CFG_DROP_VER_ERROR,4,4
	.comm	RX_FILTER_CFG_DROP_RTS,4,4
	.comm	RX_FILTER_CFG_DROP_PSPOLL,4,4
	.comm	RX_FILTER_CFG_DROP_PHY_ERROR,4,4
	.comm	RX_FILTER_CFG_DROP_NOT_TO_ME,4,4
	.comm	RX_FILTER_CFG_DROP_NOT_MY_BSSD,4,4
	.comm	RX_FILTER_CFG_DROP_MULTICAST,4,4
	.comm	RX_FILTER_CFG_DROP_DUPLICATE,4,4
	.comm	RX_FILTER_CFG_DROP_CTS,4,4
	.comm	RX_FILTER_CFG_DROP_CRC_ERROR,4,4
	.comm	RX_FILTER_CFG_DROP_CNTL,4,4
	.comm	RX_FILTER_CFG_DROP_CF_END_ACK,4,4
	.comm	RX_FILTER_CFG_DROP_CF_END,4,4
	.comm	RX_FILTER_CFG_DROP_BROADCAST,4,4
	.comm	RX_FILTER_CFG_DROP_BAR,4,4
	.comm	RX_FILTER_CFG_DROP_BA,4,4
	.comm	RX_FILTER_CFG_DROP_ACK,4,4
	.comm	RX_FILTER_CFG,4,4
	.comm	FIF_PSPOLL,4,4
	.comm	FIF_PROMISC_IN_BSS,4,4
	.comm	FIF_PLCPFAIL,4,4
	.comm	FIF_FCSFAIL,4,4
	.comm	FIF_CONTROL,4,4
	.comm	FIF_ALLMULTI,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_rt2800lib.c_rt2800_config_filter.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rt2800_config_filter
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt2800_config_filter, %function
rt2800_config_filter:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	ldr	r7, .L6
	sub	sp, sp, #12
	ldr	r3, .L6+4
	mov	r2, sp
	ldr	r1, [r7]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	rt2800_register_read
	ldr	r2, .L6+8
	ldr	r3, .L6+12
	ldr	r2, [r2]
	ldr	r1, [r3]
	tst	r4, r2
	moveq	r2, #1
	movne	r2, #0
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r2, .L6+16
	ldr	r3, .L6+20
	ldr	r2, [r2]
	ldr	r1, [r3]
	tst	r4, r2
	moveq	r2, #1
	movne	r2, #0
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r2, .L6+24
	ldr	r3, .L6+28
	ldr	r2, [r2]
	ldr	r1, [r3]
	tst	r4, r2
	moveq	r2, #1
	movne	r2, #0
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L6+32
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L6+36
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r2, .L6+40
	ldr	r3, .L6+44
	ldr	r2, [r2]
	ldr	r1, [r3]
	tst	r4, r2
	moveq	r2, #1
	movne	r2, #0
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L6+48
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L6+52
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r2, .L6+56
	ldr	r3, .L6+60
	ldr	r2, [r2]
	ldr	r1, [r3]
	tst	r4, r2
	moveq	r5, #1
	movne	r5, #0
	mov	r0, sp
	mov	r2, r5
	bl	rt2x00_set_field32
	ldr	r3, .L6+64
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L6+68
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L6+72
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L6+76
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r2, .L6+80
	ldr	r3, .L6+84
	ldr	r2, [r2]
	ldr	r1, [r3]
	tst	r4, r2
	moveq	r2, #1
	movne	r2, #0
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L6+88
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L6+92
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r3, .L6+96
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, sp
	bl	rt2x00_set_field32
	ldr	r2, [sp]
	mov	r0, r6
	ldr	r1, [r7]
	bl	rt2800_register_write
	ldr	r3, .L6+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	RX_FILTER_CFG
	.word	.LC0
	.word	FIF_FCSFAIL
	.word	RX_FILTER_CFG_DROP_CRC_ERROR
	.word	FIF_PLCPFAIL
	.word	RX_FILTER_CFG_DROP_PHY_ERROR
	.word	FIF_PROMISC_IN_BSS
	.word	RX_FILTER_CFG_DROP_NOT_TO_ME
	.word	RX_FILTER_CFG_DROP_NOT_MY_BSSD
	.word	RX_FILTER_CFG_DROP_VER_ERROR
	.word	FIF_ALLMULTI
	.word	RX_FILTER_CFG_DROP_MULTICAST
	.word	RX_FILTER_CFG_DROP_BROADCAST
	.word	RX_FILTER_CFG_DROP_DUPLICATE
	.word	FIF_CONTROL
	.word	RX_FILTER_CFG_DROP_CF_END_ACK
	.word	RX_FILTER_CFG_DROP_CF_END
	.word	RX_FILTER_CFG_DROP_ACK
	.word	RX_FILTER_CFG_DROP_CTS
	.word	RX_FILTER_CFG_DROP_RTS
	.word	FIF_PSPOLL
	.word	RX_FILTER_CFG_DROP_PSPOLL
	.word	RX_FILTER_CFG_DROP_BA
	.word	RX_FILTER_CFG_DROP_BAR
	.word	RX_FILTER_CFG_DROP_CNTL
	.size	rt2800_config_filter, .-rt2800_config_filter
	.comm	RX_FILTER_CFG_DROP_VER_ERROR,4,4
	.comm	RX_FILTER_CFG_DROP_RTS,4,4
	.comm	RX_FILTER_CFG_DROP_PSPOLL,4,4
	.comm	RX_FILTER_CFG_DROP_PHY_ERROR,4,4
	.comm	RX_FILTER_CFG_DROP_NOT_TO_ME,4,4
	.comm	RX_FILTER_CFG_DROP_NOT_MY_BSSD,4,4
	.comm	RX_FILTER_CFG_DROP_MULTICAST,4,4
	.comm	RX_FILTER_CFG_DROP_DUPLICATE,4,4
	.comm	RX_FILTER_CFG_DROP_CTS,4,4
	.comm	RX_FILTER_CFG_DROP_CRC_ERROR,4,4
	.comm	RX_FILTER_CFG_DROP_CNTL,4,4
	.comm	RX_FILTER_CFG_DROP_CF_END_ACK,4,4
	.comm	RX_FILTER_CFG_DROP_CF_END,4,4
	.comm	RX_FILTER_CFG_DROP_BROADCAST,4,4
	.comm	RX_FILTER_CFG_DROP_BAR,4,4
	.comm	RX_FILTER_CFG_DROP_BA,4,4
	.comm	RX_FILTER_CFG_DROP_ACK,4,4
	.comm	RX_FILTER_CFG,4,4
	.comm	FIF_PSPOLL,4,4
	.comm	FIF_PROMISC_IN_BSS,4,4
	.comm	FIF_PLCPFAIL,4,4
	.comm	FIF_FCSFAIL,4,4
	.comm	FIF_CONTROL,4,4
	.comm	FIF_ALLMULTI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
