	.file	"extr_fm10k_netdev.c_fm10k_update_vid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fm10k_update_vid, @function
fm10k_update_vid:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	netdev_priv@PLT
	test	ebx, ebx
	je	.L10
	mov	r15d, DWORD PTR EINVAL[rip]
	neg	r15d
	cmp	DWORD PTR VLAN_N_VID[rip], ebx
	jle	.L1
	mov	r14, rax
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR [rsp], rax
	test	r12d, r12d
	je	.L5
	mov	r15d, DWORD PTR EACCES[rip]
	neg	r15d
	cmp	QWORD PTR 40[r14], 0
	jne	.L1
	mov	esi, DWORD PTR 16[r14]
	mov	edi, ebx
	call	set_bit@PLT
.L22:
	mov	eax, DWORD PTR [r14]
	xor	r15d, r15d
	test	eax, eax
	jg	.L9
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L34:
	mov	eax, DWORD PTR 0[r13]
	or	eax, DWORD PTR FM10K_VLAN_CLEAR[rip]
	add	r15, 1
	mov	DWORD PTR 0[r13], eax
	cmp	DWORD PTR [r14], r15d
	jle	.L23
.L9:
	mov	rax, QWORD PTR 24[r14]
	mov	esi, DWORD PTR 16[r14]
	mov	r13, QWORD PTR [rax+r15*8]
	mov	eax, DWORD PTR VLAN_N_VID[rip]
	lea	edi, -1[rax]
	and	edi, DWORD PTR 0[r13]
	call	test_bit@PLT
	test	rax, rax
	jne	.L34
	mov	eax, DWORD PTR FM10K_VLAN_CLEAR[rip]
	add	r15, 1
	not	eax
	and	eax, DWORD PTR 0[r13]
	mov	DWORD PTR 0[r13], eax
	cmp	DWORD PTR [r14], r15d
	jg	.L9
.L23:
	cmp	QWORD PTR 40[r14], 0
	jne	.L10
	test	r12d, r12d
	jne	.L11
	cmp	DWORD PTR 32[r14], ebx
	je	.L10
.L11:
	mov	esi, DWORD PTR 12[r14]
	mov	edi, DWORD PTR __FM10K_DOWN[rip]
	call	test_bit@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, r14
	call	fm10k_mbx_lock@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IFF_PROMISC[rip], eax
	je	.L12
.L15:
	mov	edx, DWORD PTR 36[r14]
	mov	esi, DWORD PTR 4[r14]
	mov	r8d, r12d
	mov	ecx, ebx
	mov	rdi, r14
	call	fm10k_queue_mac_request@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L13
	cmp	QWORD PTR [rsp], 0
	je	.L19
	mov	rax, QWORD PTR [rsp]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L19
	xor	r9d, r9d
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rcx, QWORD PTR [rsp]
	mov	rax, QWORD PTR 8[rcx]
	mov	rax, QWORD PTR [rax+r9*8]
	test	rax, rax
	je	.L20
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR 4[rcx]
	mov	r8d, r12d
	mov	ecx, ebx
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], r9
	lea	esi, 1[rax+r9]
	call	fm10k_queue_mac_request@PLT
	mov	r9, QWORD PTR 8[rsp]
.L20:
	mov	rax, QWORD PTR [rsp]
	add	r9, 1
	cmp	DWORD PTR [rax], r9d
	jg	.L21
.L19:
	test	r12d, r12d
	jne	.L17
.L18:
	mov	DWORD PTR 8[r14], ebx
	mov	esi, DWORD PTR fm10k_uc_vlan_unsync[rip]
	mov	rdi, rbp
	call	__dev_uc_unsync@PLT
	mov	esi, DWORD PTR fm10k_mc_vlan_unsync[rip]
	mov	rdi, rbp
	call	__dev_mc_unsync@PLT
.L13:
	mov	rdi, r14
	call	fm10k_mbx_unlock@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L10:
	.cfi_restore_state
	xor	r15d, r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR 16[r14]
	mov	edi, ebx
	call	set_bit@PLT
	mov	esi, DWORD PTR 16[r14]
	mov	edi, ebx
	call	clear_bit@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ecx, r12d
	xor	edx, edx
	mov	esi, ebx
	mov	rdi, r14
	call	fm10k_queue_vlan_request@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L15
	jmp	.L13
.L17:
	add	ebx, DWORD PTR VLAN_N_VID[rip]
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	fm10k_update_vid, .-fm10k_update_vid
	.comm	fm10k_uc_vlan_unsync,4,4
	.comm	fm10k_mc_vlan_unsync,4,4
	.comm	__FM10K_DOWN,4,4
	.comm	VLAN_N_VID,4,4
	.comm	IFF_PROMISC,4,4
	.comm	FM10K_VLAN_CLEAR,4,4
	.comm	EINVAL,4,4
	.comm	EACCES,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_fm10k_netdev.c_fm10k_update_vid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fm10k_update_vid, %function
fm10k_update_vid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r1
	sub	sp, sp, #20
	mov	r9, r2
	str	r0, [sp, #12]
	bl	netdev_priv
	cmp	r7, #0
	beq	.L10
	ldr	r8, .L35
	ldr	r3, [r8]
	cmp	r3, r7
	ble	.L33
	cmp	r9, #0
	mov	r4, r0
	ldr	fp, [r0, #36]
	beq	.L5
	ldr	r3, [r0, #32]
	cmp	r3, #0
	bne	.L34
	ldr	r1, [r0, #16]
	mov	r0, r7
	bl	set_bit
.L22:
	ldr	r3, [r4]
	cmp	r3, #0
	movgt	r5, #0
	ldrgt	r10, .L35+4
	ble	.L23
.L9:
	ldr	r1, [r4, #20]
	ldr	r3, [r8]
	ldr	r6, [r1, r5, lsl #2]
	sub	r3, r3, #1
	ldr	r0, [r6]
	ldr	r1, [r4, #16]
	and	r0, r0, r3
	bl	test_bit
	cmp	r0, #0
	ldrne	r1, [r10]
	ldreq	r1, [r10]
	ldrne	r3, [r6]
	ldreq	r3, [r6]
	orrne	r3, r3, r1
	biceq	r3, r3, r1
	ldr	r1, [r4]
	add	r5, r5, #1
	cmp	r1, r5
	str	r3, [r6]
	bgt	.L9
.L23:
	ldr	r3, [r4, #32]
	cmp	r3, #0
	bne	.L10
	cmp	r9, #0
	bne	.L11
	ldr	r3, [r4, #24]
	cmp	r3, r7
	beq	.L10
.L11:
	ldr	r3, .L35+8
	ldr	r1, [r4, #12]
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L10
	mov	r0, r4
	bl	fm10k_mbx_lock
	ldr	r3, .L35+12
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ands	r2, r2, r3
	beq	.L12
.L15:
	ldr	r2, [r4, #28]
	ldr	r1, [r4, #4]
	mov	r3, r7
	mov	r0, r4
	str	r9, [sp]
	bl	fm10k_queue_mac_request
	subs	r5, r0, #0
	bne	.L13
	cmp	fp, #0
	beq	.L19
	ldr	r2, [fp]
	cmp	r2, #0
	ble	.L19
	mov	r6, r5
.L21:
	ldr	r3, [fp, #8]
	ldr	r3, [r3, r6, lsl #2]
	cmp	r3, #0
	beq	.L20
	ldr	r1, [fp, #4]
	ldr	r2, [r3, #4]
	add	r1, r1, #1
	mov	r3, r7
	mov	r0, r4
	add	r1, r1, r6
	str	r9, [sp]
	bl	fm10k_queue_mac_request
	ldr	r2, [fp]
.L20:
	add	r6, r6, #1
	cmp	r2, r6
	bgt	.L21
.L19:
	cmp	r9, #0
	bne	.L17
.L18:
	ldr	r3, .L35+16
	ldr	r6, [sp, #12]
	ldr	r1, [r3]
	mov	r0, r6
	str	r7, [r4, #8]
	bl	__dev_uc_unsync
	ldr	r3, .L35+20
	mov	r0, r6
	ldr	r1, [r3]
	bl	__dev_mc_unsync
.L13:
	mov	r0, r4
	bl	fm10k_mbx_unlock
	b	.L1
.L10:
	mov	r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	ldr	r3, .L35+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	ldr	r3, .L35+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L5:
	ldr	r1, [r0, #16]
	mov	r0, r7
	bl	set_bit
	mov	r0, r7
	ldr	r1, [r4, #16]
	bl	clear_bit
	b	.L22
.L12:
	mov	r3, r9
	mov	r1, r7
	mov	r0, r4
	bl	fm10k_queue_vlan_request
	subs	r5, r0, #0
	beq	.L15
	b	.L13
.L17:
	ldr	r3, [r8]
	add	r7, r7, r3
	b	.L18
.L36:
	.align	2
.L35:
	.word	VLAN_N_VID
	.word	FM10K_VLAN_CLEAR
	.word	__FM10K_DOWN
	.word	IFF_PROMISC
	.word	fm10k_uc_vlan_unsync
	.word	fm10k_mc_vlan_unsync
	.word	EINVAL
	.word	EACCES
	.size	fm10k_update_vid, .-fm10k_update_vid
	.comm	fm10k_uc_vlan_unsync,4,4
	.comm	fm10k_mc_vlan_unsync,4,4
	.comm	__FM10K_DOWN,4,4
	.comm	VLAN_N_VID,4,4
	.comm	IFF_PROMISC,4,4
	.comm	FM10K_VLAN_CLEAR,4,4
	.comm	EINVAL,4,4
	.comm	EACCES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
