	.file	"extr_hclge_main.c_hclge_init_vlan_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hclge_init_vlan_config, @function
hclge_init_vlan_config:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 64[rdi]
	mov	rbx, QWORD PTR 8[rdi]
	cmp	DWORD PTR [rax], 32
	jle	.L2
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	jle	.L3
	mov	rdx, rbx
	xor	r12d, r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	add	r12, 1
	cmp	DWORD PTR 0[rbp], r12d
	jle	.L3
	mov	rdx, QWORD PTR 8[rbp]
.L5:
	mov	rax, r12
	mov	esi, DWORD PTR HCLGE_FILTER_TYPE_VF[rip]
	mov	ecx, 1
	mov	rdi, rbp
	sal	rax, 4
	mov	r8d, DWORD PTR 8[rdx+rax]
	mov	edx, DWORD PTR HCLGE_FILTER_FE_EGRESS[rip]
	call	hclge_set_vlan_filter_ctrl@PLT
	test	eax, eax
	je	.L16
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR HCLGE_FILTER_FE_INGRESS[rip]
	xor	r8d, r8d
	mov	ecx, 1
	mov	rdi, rbp
	mov	esi, DWORD PTR HCLGE_FILTER_TYPE_PORT[rip]
	call	hclge_set_vlan_filter_ctrl@PLT
	test	eax, eax
	jne	.L1
.L7:
	mov	eax, DWORD PTR HNAE3_VLAN_FLTR[rip]
	or	DWORD PTR 12[rbx], eax
	mov	rdi, rbp
	mov	QWORD PTR 56[rbp], 33024
	mov	QWORD PTR 48[rbp], 33024
	mov	QWORD PTR 40[rbp], 33024
	mov	QWORD PTR 32[rbp], 33024
	mov	QWORD PTR 24[rbp], 33024
	mov	QWORD PTR 16[rbp], 33024
	call	hclge_set_vlan_protocol_type@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 0[rbp]
	xor	r12d, r12d
	test	eax, eax
	jg	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	add	r12, 1
	cmp	DWORD PTR 0[rbp], r12d
	jle	.L9
.L8:
	mov	rdi, r12
	sal	rdi, 4
	add	rdi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 4[rdi]
	mov	esi, DWORD PTR [rdi]
	call	hclge_vlan_offload_cfg@PLT
	test	eax, eax
	je	.L17
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR HCLGE_FILTER_FE_EGRESS_V1_B[rip]
	mov	esi, DWORD PTR HCLGE_FILTER_TYPE_VF[rip]
	xor	r8d, r8d
	mov	ecx, 1
	call	hclge_set_vlan_filter_ctrl@PLT
	test	eax, eax
	je	.L7
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR ETH_P_8021Q[rip]
	call	htons@PLT
	lea	rdi, 12[rbx]
	xor	ecx, ecx
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	xor	edx, edx
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	hclge_set_vlan_filter@PLT
	.cfi_endproc
.LFE0:
	.size	hclge_init_vlan_config, .-hclge_init_vlan_config
	.comm	HNAE3_VLAN_FLTR,4,4
	.comm	HCLGE_FILTER_TYPE_VF,4,4
	.comm	HCLGE_FILTER_TYPE_PORT,4,4
	.comm	HCLGE_FILTER_FE_INGRESS,4,4
	.comm	HCLGE_FILTER_FE_EGRESS_V1_B,4,4
	.comm	HCLGE_FILTER_FE_EGRESS,4,4
	.comm	HCLGE_DEF_VLAN_TYPE,8,8
	.comm	ETH_P_8021Q,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_hclge_main.c_hclge_init_vlan_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hclge_init_vlan_config, %function
hclge_init_vlan_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0, #32]
	mov	r5, r0
	ldr	r3, [r3]
	ldr	r9, [r0, #4]
	cmp	r3, #32
	sub	sp, sp, #12
	ble	.L2
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L3
	mov	r3, r9
	mov	r6, #0
	ldr	r8, .L18
	ldr	r7, .L18+4
	b	.L5
.L16:
	ldr	r3, [r5]
	cmp	r3, r6
	ble	.L3
	ldr	r3, [r5, #4]
.L5:
	add	r3, r3, r6, lsl #4
	ldr	r2, [r3, #8]
	mov	r0, r5
	str	r2, [sp]
	mov	r3, #1
	ldr	r2, [r8]
	ldr	r1, [r7]
	bl	hclge_set_vlan_filter_ctrl
	subs	r4, r0, #0
	add	r6, r6, #1
	beq	.L16
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	mov	r1, #0
	ldr	r3, .L18+8
	ldr	r2, .L18+12
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #1
	ldr	r2, [r2]
	bl	hclge_set_vlan_filter_ctrl
	subs	r4, r0, #0
	bne	.L1
.L7:
	mov	r3, #33024
	ldr	r1, .L18+16
	ldr	r2, [r9, #12]
	ldr	r1, [r1]
	mov	r0, r5
	orr	r2, r2, r1
	str	r2, [r9, #12]
	str	r3, [r5, #28]
	str	r3, [r5, #24]
	str	r3, [r5, #20]
	str	r3, [r5, #16]
	str	r3, [r5, #12]
	str	r3, [r5, #8]
	bl	hclge_set_vlan_protocol_type
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [r5]
	cmp	r3, #0
	bgt	.L8
	b	.L9
.L17:
	ldr	r3, [r5]
	cmp	r3, r4
	ble	.L9
.L8:
	ldr	r3, [r5, #4]
	add	r0, r3, r4, lsl #4
	ldr	r1, [r3, r4, lsl #4]
	ldr	r2, [r0, #4]
	bl	hclge_vlan_offload_cfg
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L17
	mov	r4, r0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r1, #0
	ldr	r3, .L18+4
	ldr	r2, .L18+20
	str	r1, [sp]
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #1
	bl	hclge_set_vlan_filter_ctrl
	subs	r4, r0, #0
	beq	.L7
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	ldr	r3, .L18+24
	ldr	r0, [r3]
	bl	htons
	mov	r3, #0
	mov	r1, r0
	mov	r2, r3
	add	r0, r9, #12
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	hclge_set_vlan_filter
.L19:
	.align	2
.L18:
	.word	HCLGE_FILTER_FE_EGRESS
	.word	HCLGE_FILTER_TYPE_VF
	.word	HCLGE_FILTER_TYPE_PORT
	.word	HCLGE_FILTER_FE_INGRESS
	.word	HNAE3_VLAN_FLTR
	.word	HCLGE_FILTER_FE_EGRESS_V1_B
	.word	ETH_P_8021Q
	.size	hclge_init_vlan_config, .-hclge_init_vlan_config
	.comm	HNAE3_VLAN_FLTR,4,4
	.comm	HCLGE_FILTER_TYPE_VF,4,4
	.comm	HCLGE_FILTER_TYPE_PORT,4,4
	.comm	HCLGE_FILTER_FE_INGRESS,4,4
	.comm	HCLGE_FILTER_FE_EGRESS_V1_B,4,4
	.comm	HCLGE_FILTER_FE_EGRESS,4,4
	.comm	HCLGE_DEF_VLAN_TYPE,4,4
	.comm	ETH_P_8021Q,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
