	.file	"extr_b53_common.c_b53_vlan_set_ports.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b53_vlan_set_ports, @function
b53_vlan_set_ports:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	sw_to_b53@PLT
	mov	r15, rax
	mov	rax, QWORD PTR 0[r13]
	mov	rdx, QWORD PTR 24[r15]
	lea	rbp, [rdx+rax*8]
	test	rax, rax
	je	.L16
	cmp	rax, 4095
	je	.L17
.L6:
	mov	rbx, QWORD PTR 16[r13]
	mov	QWORD PTR 0[rbp], 0
	mov	eax, DWORD PTR 8[r13]
	test	eax, eax
	jle	.L10
	xor	r12d, r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	add	r12d, 1
	add	rbx, 16
	cmp	DWORD PTR 8[r13], r12d
	jle	.L18
.L9:
	mov	rdi, QWORD PTR [rbx]
	call	BIT@PLT
	or	DWORD PTR 0[rbp], eax
	mov	rdi, QWORD PTR SWITCH_PORT_FLAG_TAGGED[rip]
	mov	r14d, DWORD PTR 8[rbx]
	call	BIT@PLT
	test	r14d, eax
	jne	.L8
	mov	rdi, QWORD PTR [rbx]
	add	r12d, 1
	add	rbx, 16
	call	BIT@PLT
	mov	rdx, QWORD PTR -16[rbx]
	or	DWORD PTR 4[rbp], eax
	mov	rcx, QWORD PTR 0[r13]
	mov	rax, QWORD PTR 8[r15]
	mov	DWORD PTR [rax+rdx*4], ecx
	cmp	DWORD PTR 8[r13], r12d
	jg	.L9
.L18:
	mov	edx, DWORD PTR 0[rbp]
	mov	ecx, DWORD PTR 4[rbp]
.L7:
	mov	eax, DWORD PTR [r15]
	and	edx, eax
	and	eax, ecx
	mov	DWORD PTR 4[rbp], eax
	xor	eax, eax
	mov	DWORD PTR 0[rbp], edx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L16:
	.cfi_restore_state
	mov	rdi, r15
	call	is5325@PLT
	test	eax, eax
	je	.L3
.L13:
	mov	rax, QWORD PTR 0[r13]
	cmp	rax, 4095
	jne	.L6
.L17:
	mov	edx, DWORD PTR 16[r15]
	test	edx, edx
	jne	.L6
.L14:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L3:
	.cfi_restore_state
	mov	rdi, r15
	call	is5365@PLT
	test	eax, eax
	jne	.L13
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L10:
	xor	ecx, ecx
	xor	edx, edx
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	b53_vlan_set_ports, .-b53_vlan_set_ports
	.comm	SWITCH_PORT_FLAG_TAGGED,8,8
	.comm	EINVAL,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_set_ports.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b53_vlan_set_ports, %function
b53_vlan_set_ports:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	sub	sp, sp, #12
	bl	sw_to_b53
	ldr	r3, [r6]
	ldr	r9, [r0, #12]
	lsl	r2, r3, #3
	cmp	r3, #0
	mov	r8, r0
	str	r2, [sp, #4]
	add	r5, r9, r3, lsl #3
	beq	.L16
	ldr	r2, .L19
	cmp	r3, r2
	beq	.L17
.L6:
	ldmib	r6, {r3, r4}
	mov	fp, #0
	cmp	r3, fp
	ldr	r3, [sp, #4]
	str	fp, [r9, r3]
	str	fp, [r5, #4]
	ble	.L10
	ldr	r7, .L19+4
	add	r4, r4, #8
	b	.L9
.L8:
	ldr	r3, [r6, #4]
	add	r4, r4, #8
	cmp	r3, fp
	ble	.L18
.L9:
	ldr	r0, [r4, #-8]
	bl	BIT
	mov	r2, r0
	ldr	r3, [r5]
	ldr	r0, [r7]
	orr	r3, r3, r2
	str	r3, [r5]
	ldr	r10, [r4, #-4]
	bl	BIT
	tst	r10, r0
	add	fp, fp, #1
	bne	.L8
	ldr	r0, [r4, #-8]
	bl	BIT
	ldr	r3, [r5, #4]
	ldr	r1, [r4, #-8]
	orr	r3, r3, r0
	ldr	r2, [r8, #4]
	ldr	r0, [r6]
	str	r3, [r5, #4]
	ldr	r3, [r6, #4]
	str	r0, [r2, r1, lsl #2]
	cmp	r3, fp
	add	r4, r4, #8
	bgt	.L9
.L18:
	ldr	r3, [sp, #4]
	ldr	fp, [r5, #4]
	ldr	r2, [r9, r3]
.L7:
	mov	r0, #0
	ldr	r3, [r8]
	and	r2, r2, r3
	and	fp, fp, r3
	ldr	r3, [sp, #4]
	str	r2, [r9, r3]
	str	fp, [r5, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	bl	is5325
	cmp	r0, #0
	beq	.L3
.L13:
	ldr	r3, [r6]
	ldr	r2, .L19
	cmp	r3, r2
	bne	.L6
.L17:
	ldr	r3, [r8, #8]
	cmp	r3, #0
	bne	.L6
.L14:
	ldr	r3, .L19+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r0, r8
	bl	is5365
	cmp	r0, #0
	bne	.L13
	b	.L14
.L10:
	mov	r2, fp
	b	.L7
.L20:
	.align	2
.L19:
	.word	4095
	.word	SWITCH_PORT_FLAG_TAGGED
	.word	EINVAL
	.size	b53_vlan_set_ports, .-b53_vlan_set_ports
	.comm	SWITCH_PORT_FLAG_TAGGED,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
