	.file	"extr_arswitch_vlans.c_ar8xxx_setvgroup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ar8xxx_setvgroup
	.type	ar8xxx_setvgroup, @function
ar8xxx_setvgroup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR MA_NOTOWNED[rip]
	call	ARSWITCH_LOCK_ASSERT@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	r12d, DWORD PTR EINVAL[rip]
	test	eax, eax
	jne	.L25
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rdi, rbp
	call	ARSWITCH_LOCK@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR [rbx]
	lea	rdx, [rax+rdx*4]
	mov	eax, DWORD PTR 0[rbp]
	mov	r13d, DWORD PTR [rdx]
	cmp	eax, 129
	je	.L26
.L4:
	cmp	eax, 128
	je	.L8
.L10:
	mov	r12d, -1
.L9:
	mov	rdi, rbp
	call	ARSWITCH_UNLOCK@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	r12d, DWORD PTR 8[rbx]
	mov	eax, DWORD PTR ETHERSWITCH_VID_MASK[rip]
	test	DWORD PTR ETHERSWITCH_VID_VALID[rip], r13d
	je	.L5
	mov	ecx, r13d
	xor	ecx, r12d
	test	ecx, eax
	jne	.L27
.L5:
	and	r12d, eax
	mov	DWORD PTR [rdx], r12d
	je	.L9
	mov	r13d, DWORD PTR ETHERSWITCH_VID_VALID[rip]
	or	r13d, r12d
	mov	DWORD PTR [rdx], r13d
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 128
	je	.L8
	cmp	eax, 129
	jne	.L10
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR 12[rbx]
	mov	ecx, r13d
	mov	rdi, rbp
	call	[QWORD PTR 24[rbp]]
	mov	r12d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR 12[rbx]
	mov	edx, r13d
	mov	rdi, rbp
	call	[QWORD PTR 32[rbp]]
	mov	r12d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, r13d
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 129
	jne	.L4
	mov	rcx, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rbp]
	mov	r12d, DWORD PTR 8[rbx]
	mov	eax, DWORD PTR ETHERSWITCH_VID_MASK[rip]
	lea	rdx, [rdx+rcx*4]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ar8xxx_setvgroup, .-ar8xxx_setvgroup
	.comm	MA_NOTOWNED,4,4
	.comm	ETHERSWITCH_VID_VALID,4,4
	.comm	ETHERSWITCH_VID_MASK,4,4
	.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_arswitch_vlans.c_ar8xxx_setvgroup.c"
	.text
	.align	2
	.global	ar8xxx_setvgroup
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar8xxx_setvgroup, %function
ar8xxx_setvgroup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r3, .L27
	mov	r5, r1
	ldr	r1, [r3]
	bl	ARSWITCH_LOCK_ASSERT
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L27+4
	ldr	r6, [r3]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, r4
	bl	ARSWITCH_LOCK
	ldr	r1, [r4]
	ldr	r2, [r5]
	ldr	r3, [r4, #4]
	cmp	r1, #129
	ldr	r7, [r3, r2, lsl #2]
	add	ip, r3, r2, lsl #2
	beq	.L25
.L4:
	cmp	r1, #128
	beq	.L8
.L10:
	mvn	r6, #0
.L9:
	mov	r0, r4
	bl	ARSWITCH_UNLOCK
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	ldr	r8, .L27+8
	ldr	r9, .L27+12
	ldr	r3, [r8]
	ldr	r6, [r9]
	tst	r7, r3
	ldr	r0, [r5, #4]
	beq	.L5
	eor	r3, r7, r0
	tst	r3, r6
	bne	.L26
.L5:
	and	r6, r6, r0
	cmp	r6, #0
	str	r6, [ip]
	beq	.L9
	ldr	r7, [r8]
	orr	r7, r6, r7
	str	r7, [ip]
	ldr	r3, [r4]
	cmp	r3, #128
	beq	.L8
	cmp	r3, #129
	bne	.L10
	ldr	r6, [r4, #12]
	mov	r3, r7
	mov	r0, r4
	ldr	r2, [r5, #12]
	ldr	r1, [r5, #8]
	blx	r6
	mov	r6, r0
	b	.L9
.L8:
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [r5, #8]
	ldr	r3, [r4, #16]
	blx	r3
	mov	r6, r0
	b	.L9
.L26:
	mov	r1, r7
	mov	r0, r4
	ldr	r3, [r4, #8]
	blx	r3
	subs	r6, r0, #0
	bne	.L9
	ldr	r1, [r4]
	cmp	r1, #129
	bne	.L4
	ldr	r3, [r5]
	ldr	ip, [r4, #4]
	ldr	r6, [r9]
	ldr	r0, [r5, #4]
	add	ip, ip, r3, lsl #2
	b	.L5
.L28:
	.align	2
.L27:
	.word	MA_NOTOWNED
	.word	EINVAL
	.word	ETHERSWITCH_VID_VALID
	.word	ETHERSWITCH_VID_MASK
	.size	ar8xxx_setvgroup, .-ar8xxx_setvgroup
	.comm	MA_NOTOWNED,4,4
	.comm	ETHERSWITCH_VID_VALID,4,4
	.comm	ETHERSWITCH_VID_MASK,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
