	.file	"extr_b53_common.c_b53_vlan_filtering.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	b53_vlan_filtering
	.type	b53_vlan_filtering, @function
b53_vlan_filtering:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR [rdi]
	mov	edi, esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	B53_VLAN_PORT_DEF_TAG@PLT
	mov	esi, DWORD PTR B53_VLAN_PAGE[rip]
	mov	rcx, rsp
	mov	rdi, rbp
	mov	edx, eax
	call	b53_read16@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rcx, QWORD PTR 8[rbp]
	movsx	rdx, r12d
	test	r13d, r13d
	je	.L8
	mov	r14, QWORD PTR [rcx+rdx*8]
.L3:
	cmp	r14, rax
	je	.L4
	mov	edi, r12d
	call	B53_VLAN_PORT_DEF_TAG@PLT
	mov	esi, DWORD PTR B53_VLAN_PAGE[rip]
	mov	rcx, r14
	mov	rdi, rbp
	mov	edx, eax
	call	b53_write16@PLT
.L4:
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, r13d
	mov	rdi, rbp
	call	b53_enable_vlan@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	QWORD PTR [rcx+rdx*8], rax
	mov	rdi, rbp
	call	b53_default_pvid@PLT
	mov	r14, rax
	mov	rax, QWORD PTR [rsp]
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	b53_vlan_filtering, .-b53_vlan_filtering
	.comm	B53_VLAN_PAGE,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_b53_common.c_b53_vlan_filtering.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	b53_vlan_filtering
	.syntax unified
	.arm
	.fpu softvfp
	.type	b53_vlan_filtering, %function
b53_vlan_filtering:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r3]
	ldr	r8, .L10
	ldr	r3, .L10+4
	sub	sp, sp, #8
	mov	r0, r1
	mov	r5, r1
	mov	r6, r2
	ldr	r7, [r8]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	B53_VLAN_PORT_DEF_TAG
	mov	r1, r7
	mov	r2, r0
	mov	r3, sp
	mov	r0, r4
	bl	b53_read16
	ldr	r2, [r4, #4]
	cmp	r6, #0
	ldr	r3, [sp]
	ldrne	r7, [r2, r5, lsl #2]
	beq	.L8
.L3:
	cmp	r7, r3
	beq	.L4
	mov	r0, r5
	ldr	r8, [r8]
	bl	B53_VLAN_PORT_DEF_TAG
	mov	r3, r7
	mov	r2, r0
	mov	r1, r8
	mov	r0, r4
	bl	b53_write16
.L4:
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r4]
	bl	b53_enable_vlan
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	str	r3, [r2, r5, lsl #2]
	mov	r0, r4
	bl	b53_default_pvid
	ldr	r3, [sp]
	mov	r7, r0
	b	.L3
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	B53_VLAN_PAGE
	.word	.LC0
	.size	b53_vlan_filtering, .-b53_vlan_filtering
	.comm	B53_VLAN_PAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
