	.file	"extr_b53_common.c_b53_set_vlan_entry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b53_set_vlan_entry, @function
b53_set_vlan_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	is5325@PLT
	test	rax, rax
	je	.L2
	test	r12d, r12d
	jne	.L16
.L3:
	mov	edx, DWORD PTR B53_VLAN_WRITE_25[rip]
	mov	esi, DWORD PTR B53_VLAN_PAGE[rip]
	mov	ecx, r12d
	mov	rdi, rbp
	call	b53_write32@PLT
	mov	ecx, DWORD PTR VTA_RW_STATE_WR[rip]
	mov	edx, DWORD PTR B53_VLAN_TABLE_ACCESS_25[rip]
	or	ecx, DWORD PTR VTA_RW_OP_EN[rip]
	or	ecx, r13d
.L14:
	mov	esi, DWORD PTR B53_VLAN_PAGE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	b53_write16@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	and	ebx, DWORD PTR VA_UNTAG_MASK_25[rip]
	mov	ecx, DWORD PTR VA_UNTAG_S_25[rip]
	mov	edx, ebx
	sal	edx, cl
	or	edx, r12d
	cmp	DWORD PTR 0[rbp], 2
	jle	.L4
	mov	ecx, DWORD PTR VA_VID_HIGH_S[rip]
	mov	r12d, r13d
	sal	r12d, cl
	or	r12d, DWORD PTR VA_VALID_25_R4[rip]
	or	r12d, edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	is5365@PLT
	test	rax, rax
	je	.L5
	test	r12d, r12d
	je	.L6
	mov	ecx, DWORD PTR VA_UNTAG_S_65[rip]
	and	ebx, DWORD PTR VA_UNTAG_MASK_65[rip]
	or	r12d, DWORD PTR VA_VALID_65[rip]
	sal	ebx, cl
	or	r12d, ebx
.L6:
	mov	edx, DWORD PTR B53_VLAN_WRITE_65[rip]
	mov	esi, DWORD PTR B53_VLAN_PAGE[rip]
	mov	ecx, r12d
	mov	rdi, rbp
	call	b53_write16@PLT
	mov	ecx, DWORD PTR VTA_RW_STATE_WR[rip]
	or	ecx, DWORD PTR VTA_RW_OP_EN[rip]
	mov	edx, DWORD PTR B53_VLAN_TABLE_ACCESS_65[rip]
	or	ecx, r13d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	or	edx, DWORD PTR VA_VALID_25[rip]
	mov	r12d, edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR B53_ARLIO_PAGE[rip]
	mov	ecx, r13d
	mov	rdi, rbp
	mov	edx, DWORD PTR 4[rax]
	call	b53_write16@PLT
	mov	ecx, DWORD PTR VTE_UNTAG_S[rip]
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	mov	esi, DWORD PTR B53_ARLIO_PAGE[rip]
	sal	ebx, cl
	mov	edx, DWORD PTR 8[rax]
	mov	ecx, ebx
	or	ecx, r12d
	call	b53_write32@PLT
	mov	esi, DWORD PTR VTA_CMD_WRITE[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	b53_do_vlan_op@PLT
	.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
	.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, r8, lr}
	mov	r6, r1
	mov	r4, r2
	mov	r7, r3
	mov	r5, r0
	bl	is5325
	cmp	r0, #0
	beq	.L2
	cmp	r4, #0
	bne	.L16
.L3:
	ldr	r2, .L17
	ldr	r7, .L17+4
	mov	r3, r4
	ldr	r2, [r2]
	ldr	r1, [r7]
	mov	r0, r5
	bl	b53_write32
	ldr	r2, .L17+8
	ldr	r3, .L17+12
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L17+16
.L14:
	orr	r3, r3, r1
	mov	r0, r5
	ldr	r1, [r7]
	orr	r3, r3, r6
	ldr	r2, [r2]
	pop	{r4, r5, r6, r7, r8, lr}
	b	b53_write16
.L16:
	ldr	r2, .L17+20
	ldr	r3, .L17+24
	ldr	r2, [r2]
	ldr	r1, [r5]
	ldr	r0, [r3]
	cmp	r1, #2
	and	r3, r7, r2
	orr	r4, r4, r3, lsl r0
	ldrgt	r2, .L17+28
	ldrgt	r3, .L17+32
	ldrle	r3, .L17+36
	ldrgt	r2, [r2]
	ldrgt	r3, [r3]
	ldrle	r2, [r3]
	orrgt	r2, r2, r6, lsl r3
	orr	r4, r4, r2
	b	.L3
.L2:
	mov	r0, r5
	bl	is5365
	cmp	r0, #0
	beq	.L5
	cmp	r4, #0
	beq	.L6
	ldr	r3, .L17+40
	ldr	r2, .L17+44
	ldr	r1, .L17+48
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	and	r3, r3, r7
	orr	r4, r4, r2
	orr	r4, r4, r3, lsl r1
.L6:
	ldr	r2, .L17+52
	ldr	r7, .L17+4
	mov	r3, r4
	ldr	r2, [r2]
	ldr	r1, [r7]
	mov	r0, r5
	bl	b53_write16
	ldr	r2, .L17+8
	ldr	r3, .L17+12
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L17+56
	b	.L14
.L5:
	ldr	r2, [r5, #4]
	ldr	r8, .L17+60
	mov	r3, r6
	ldr	r1, [r8]
	mov	r0, r5
	ldr	r2, [r2, #4]
	bl	b53_write16
	ldr	r3, .L17+64
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	ldr	r1, [r8]
	orr	r3, r4, r7, lsl r3
	mov	r0, r5
	ldr	r2, [r2, #8]
	bl	b53_write32
	ldr	r3, .L17+68
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	b	b53_do_vlan_op
.L18:
	.align	2
.L17:
	.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	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_UNTAG_MASK_65
	.word	VA_VALID_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
