	.file	"extr_b53_common.c_b53_set_vlan_entry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"VID: %d, members: 0x%04x, untag: 0x%04x\n"
	.text
	.p2align 4
	.type	b53_set_vlan_entry, @function
b53_set_vlan_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	is5325@PLT
	test	rax, rax
	je	.L2
	mov	r8d, DWORD PTR 0[rbp]
	test	r8d, r8d
	jne	.L16
.L3:
	mov	edx, DWORD PTR B53_VLAN_WRITE_25[rip]
	mov	esi, DWORD PTR B53_VLAN_PAGE[rip]
	mov	ecx, r8d
	mov	rdi, rbx
	call	b53_write32@PLT
	mov	ecx, DWORD PTR VTA_RW_STATE_WR[rip]
	mov	edx, DWORD PTR B53_VLAN_TABLE_ACCESS_25[rip]
	mov	rdi, rbx
	or	ecx, DWORD PTR VTA_RW_OP_EN[rip]
	mov	esi, DWORD PTR B53_VLAN_PAGE[rip]
	or	ecx, r12d
	call	b53_write16@PLT
.L5:
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	r8d, DWORD PTR 4[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edi, DWORD PTR [rax]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	dev_dbg@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	ecx, DWORD PTR VA_UNTAG_S_25[rip]
	mov	eax, DWORD PTR 4[rbp]
	and	eax, DWORD PTR VA_UNTAG_MASK_25[rip]
	sal	eax, cl
	or	r8d, eax
	cmp	DWORD PTR [rbx], 2
	jle	.L4
	mov	ecx, DWORD PTR VA_VID_HIGH_S[rip]
	mov	eax, r12d
	sal	eax, cl
	or	eax, DWORD PTR VA_VALID_25_R4[rip]
	or	r8d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbx
	call	is5365@PLT
	test	rax, rax
	je	.L6
	mov	r8d, DWORD PTR 0[rbp]
	test	r8d, r8d
	je	.L7
	mov	ecx, DWORD PTR VA_UNTAG_S_65[rip]
	mov	eax, DWORD PTR 4[rbp]
	and	eax, DWORD PTR VA_UNTAG_MASK_65[rip]
	or	r8d, DWORD PTR VA_VALID_65[rip]
	sal	eax, cl
	or	r8d, eax
.L7:
	mov	edx, DWORD PTR B53_VLAN_WRITE_65[rip]
	mov	esi, DWORD PTR B53_VLAN_PAGE[rip]
	mov	ecx, r8d
	mov	rdi, rbx
	call	b53_write16@PLT
	mov	ecx, DWORD PTR VTA_RW_STATE_WR[rip]
	mov	edx, DWORD PTR B53_VLAN_TABLE_ACCESS_65[rip]
	mov	rdi, rbx
	or	ecx, DWORD PTR VTA_RW_OP_EN[rip]
	mov	esi, DWORD PTR B53_VLAN_PAGE[rip]
	or	ecx, r12d
	call	b53_write16@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	or	r8d, DWORD PTR VA_VALID_25[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR B53_ARLIO_PAGE[rip]
	mov	ecx, r12d
	mov	rdi, rbx
	mov	edx, DWORD PTR 4[rax]
	call	b53_write16@PLT
	mov	ecx, DWORD PTR VTE_UNTAG_S[rip]
	mov	eax, DWORD PTR 4[rbp]
	mov	rdi, rbx
	mov	esi, DWORD PTR B53_ARLIO_PAGE[rip]
	sal	eax, cl
	mov	ecx, DWORD PTR 0[rbp]
	or	ecx, eax
	mov	rax, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR 8[rax]
	call	b53_write32@PLT
	mov	esi, DWORD PTR VTA_CMD_WRITE[rip]
	mov	rdi, rbx
	call	b53_do_vlan_op@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	b53_set_vlan_entry, .-b53_set_vlan_entry
	.comm	VTE_UNTAG_S,4,4
	.comm	VTA_RW_STATE_WR,4,4
	.comm	VTA_RW_OP_EN,4,4
	.comm	VTA_CMD_WRITE,4,4
	.comm	VA_VID_HIGH_S,4,4
	.comm	VA_VALID_65,4,4
	.comm	VA_VALID_25_R4,4,4
	.comm	VA_VALID_25,4,4
	.comm	VA_UNTAG_S_65,4,4
	.comm	VA_UNTAG_S_25,4,4
	.comm	VA_UNTAG_MASK_65,4,4
	.comm	VA_UNTAG_MASK_25,4,4
	.comm	B53_VLAN_WRITE_65,4,4
	.comm	B53_VLAN_WRITE_25,4,4
	.comm	B53_VLAN_TABLE_ACCESS_65,4,4
	.comm	B53_VLAN_TABLE_ACCESS_25,4,4
	.comm	B53_VLAN_PAGE,4,4
	.comm	B53_ARLIO_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_set_vlan_entry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"VID: %d, members: 0x%04x, untag: 0x%04x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b53_set_vlan_entry, %function
b53_set_vlan_entry:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	mov	r6, r1
	mov	r5, r2
	mov	r4, r0
	bl	is5325
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L17
.L3:
	ldr	r2, .L18
	ldr	r7, .L18+4
	ldr	r2, [r2]
	ldr	r1, [r7]
	mov	r0, r4
	bl	b53_write32
	ldr	r2, .L18+8
	ldr	r3, .L18+12
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L18+16
.L15:
	orr	r3, r3, r1
	mov	r0, r4
	ldr	r1, [r7]
	ldr	r2, [r2]
	orr	r3, r3, r6
	bl	b53_write16
.L5:
	ldr	r2, [r4, #4]
	ldr	r3, [r5, #4]
	ldr	r0, [r2]
	str	r3, [sp]
	mov	r2, r6
	ldr	r3, [r5]
	ldr	r1, .L18+20
	bl	dev_dbg
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L17:
	ldr	r2, .L18+24
	ldr	r0, .L18+28
	ldr	r1, [r2]
	ldr	r2, [r5, #4]
	ldr	r0, [r0]
	and	r2, r2, r1
	ldr	r1, [r4]
	orr	r3, r3, r2, lsl r0
	cmp	r1, #2
	ldrgt	r2, .L18+32
	ldrgt	r1, .L18+36
	ldrle	r2, .L18+40
	ldrgt	r2, [r2]
	ldrgt	r1, [r1]
	ldrle	r2, [r2]
	orrgt	r2, r2, r6, lsl r1
	orr	r3, r3, r2
	b	.L3
.L2:
	mov	r0, r4
	bl	is5365
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L7
	ldr	r1, .L18+44
	ldr	r2, .L18+48
	ldr	r0, [r1]
	ldr	r1, .L18+52
	ldr	ip, [r2]
	ldr	r2, [r5, #4]
	ldr	r1, [r1]
	and	r2, r2, ip
	orr	r3, r3, r0
	orr	r3, r3, r2, lsl r1
.L7:
	ldr	r2, .L18+56
	ldr	r7, .L18+4
	ldr	r2, [r2]
	ldr	r1, [r7]
	mov	r0, r4
	bl	b53_write16
	ldr	r2, .L18+8
	ldr	r3, .L18+12
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L18+60
	b	.L15
.L6:
	ldr	r3, [r4, #8]
	ldr	r7, .L18+64
	ldr	r2, [r3, #4]
	ldr	r1, [r7]
	mov	r3, r6
	mov	r0, r4
	bl	b53_write16
	ldr	r3, .L18+68
	ldr	r0, [r5]
	ldr	ip, [r5, #4]
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	ldr	r1, [r7]
	orr	r3, r0, ip, lsl r3
	ldr	r2, [r2, #8]
	mov	r0, r4
	bl	b53_write32
	ldr	r3, .L18+72
	mov	r0, r4
	ldr	r1, [r3]
	bl	b53_do_vlan_op
	b	.L5
.L19:
	.align	2
.L18:
	.word	B53_VLAN_WRITE_25
	.word	B53_VLAN_PAGE
	.word	VTA_RW_OP_EN
	.word	VTA_RW_STATE_WR
	.word	B53_VLAN_TABLE_ACCESS_25
	.word	.LC0
	.word	VA_UNTAG_MASK_25
	.word	VA_UNTAG_S_25
	.word	VA_VALID_25_R4
	.word	VA_VID_HIGH_S
	.word	VA_VALID_25
	.word	VA_VALID_65
	.word	VA_UNTAG_MASK_65
	.word	VA_UNTAG_S_65
	.word	B53_VLAN_WRITE_65
	.word	B53_VLAN_TABLE_ACCESS_65
	.word	B53_ARLIO_PAGE
	.word	VTE_UNTAG_S
	.word	VTA_CMD_WRITE
	.size	b53_set_vlan_entry, .-b53_set_vlan_entry
	.comm	VTE_UNTAG_S,4,4
	.comm	VTA_RW_STATE_WR,4,4
	.comm	VTA_RW_OP_EN,4,4
	.comm	VTA_CMD_WRITE,4,4
	.comm	VA_VID_HIGH_S,4,4
	.comm	VA_VALID_65,4,4
	.comm	VA_VALID_25_R4,4,4
	.comm	VA_VALID_25,4,4
	.comm	VA_UNTAG_S_65,4,4
	.comm	VA_UNTAG_S_25,4,4
	.comm	VA_UNTAG_MASK_65,4,4
	.comm	VA_UNTAG_MASK_25,4,4
	.comm	B53_VLAN_WRITE_65,4,4
	.comm	B53_VLAN_WRITE_25,4,4
	.comm	B53_VLAN_TABLE_ACCESS_65,4,4
	.comm	B53_VLAN_TABLE_ACCESS_25,4,4
	.comm	B53_VLAN_PAGE,4,4
	.comm	B53_ARLIO_PAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
