	.file	"extr_adm6996.c_adm6996_hw_apply.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hw_apply\n"
	.text
	.p2align 4
	.type	adm6996_hw_apply, @function
adm6996_hw_apply:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	to_adm@PLT
	lea	rdi, .LC0[rip]
	mov	rbp, rax
	call	pr_devel@PLT
	lea	r12, 16[rbp]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	ecx, DWORD PTR 20[rbp]
	test	ecx, ecx
	je	.L12
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR ADM6996L[rip]
	mov	rdi, rbp
	cmp	QWORD PTR 8[rbp], rax
	je	.L13
	call	adm6996_enable_vlan@PLT
.L8:
	mov	DWORD PTR 0[rbp], 1
.L6:
	mov	rdi, rbp
	call	adm6996_apply_port_pvids@PLT
	mov	rax, QWORD PTR ADM6996L[rip]
	mov	rdi, rbp
	cmp	QWORD PTR 8[rbp], rax
	je	.L14
	call	adm6996_apply_vlan_filters@PLT
.L3:
	mov	rdi, r12
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	adm6996_apply_vlan_filters_6996l@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	je	.L3
	mov	rax, QWORD PTR ADM6996L[rip]
	mov	rdi, rbp
	cmp	QWORD PTR 8[rbp], rax
	je	.L15
	call	adm6996_disable_vlan@PLT
.L5:
	mov	DWORD PTR 0[rbp], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	call	adm6996_enable_vlan_6996l@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	call	adm6996_disable_vlan_6996l@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	adm6996_hw_apply, .-adm6996_hw_apply
	.comm	ADM6996L,8,8
	.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_adm6996.c_adm6996_hw_apply.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hw_apply\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adm6996_hw_apply, %function
adm6996_hw_apply:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	to_adm
	mov	r4, r0
	ldr	r0, .L21
	add	r5, r4, #8
	bl	pr_devel
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, [r4, #12]
	cmp	r3, #0
	ldr	r3, [r4]
	beq	.L17
	cmp	r3, #0
	ldr	r6, .L21+4
	bne	.L6
	ldr	r2, [r4, #4]
	ldr	r3, [r6]
	mov	r0, r4
	cmp	r2, r3
	beq	.L18
	bl	adm6996_enable_vlan
.L8:
	mov	r3, #1
	str	r3, [r4]
.L6:
	mov	r0, r4
	bl	adm6996_apply_port_pvids
	ldr	r3, [r6]
	ldr	r2, [r4, #4]
	mov	r0, r4
	cmp	r2, r3
	beq	.L19
	bl	adm6996_apply_vlan_filters
.L3:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L19:
	bl	adm6996_apply_vlan_filters_6996l
	b	.L3
.L17:
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L21+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r2, r3
	beq	.L20
	bl	adm6996_disable_vlan
.L5:
	mov	r3, #0
	str	r3, [r4]
	b	.L3
.L18:
	bl	adm6996_enable_vlan_6996l
	b	.L8
.L20:
	bl	adm6996_disable_vlan_6996l
	b	.L5
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	ADM6996L
	.size	adm6996_hw_apply, .-adm6996_hw_apply
	.comm	ADM6996L,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
