	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_update_port_base_vlan_cfg ## -- Begin function hclge_update_port_base_vlan_cfg
	.p2align	4, 0x90
_hclge_update_port_base_vlan_cfg:       ## @hclge_update_port_base_vlan_cfg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	32(%rdi), %r15
	movl	8(%rdx), %edx
	callq	_hclge_vlan_offload_cfg
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_HNAE3_PORT_BASE_VLAN_MODIFY@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %edi
	callq	_htons
	movl	24(%r12), %edx
	movl	8(%r14), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	callq	_hclge_set_vlan_filter_hw
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movl	(%r12), %edi
	callq	_htons
	movl	8(%r12), %ecx
	movl	24(%r12), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$1, %r8d
	callq	_hclge_set_vlan_filter_hw
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_hclge_update_vlan_filter_entries
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	%rbx, 16(%r12)
	movq	_HNAE3_PORT_BASE_VLAN_DISABLE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_HNAE3_PORT_BASE_VLAN_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_7:
	movq	%rbx, 40(%r12)
LBB0_8:
	movl	8(%r14), %eax
	movl	%eax, 8(%r12)
	movl	4(%r14), %eax
	movl	%eax, 4(%r12)
	movl	(%r14), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_PORT_BASE_VLAN_MODIFY,8,3 ## @HNAE3_PORT_BASE_VLAN_MODIFY
	.comm	_HNAE3_PORT_BASE_VLAN_DISABLE,8,3 ## @HNAE3_PORT_BASE_VLAN_DISABLE
	.comm	_HNAE3_PORT_BASE_VLAN_ENABLE,8,3 ## @HNAE3_PORT_BASE_VLAN_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_update_port_base_vlan_cfg ; -- Begin function hclge_update_port_base_vlan_cfg
	.p2align	2
_hclge_update_port_base_vlan_cfg:       ; @hclge_update_port_base_vlan_cfg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x0, #32]
	ldr	w2, [x2, #8]
	bl	_hclge_vlan_offload_cfg
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _HNAE3_PORT_BASE_VLAN_MODIFY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNAE3_PORT_BASE_VLAN_MODIFY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x19]
	bl	_htons
	mov	x1, x0
	ldr	w2, [x20, #24]
	ldr	w3, [x19, #8]
	mov	x0, x21
	mov	w4, #0
	bl	_hclge_set_vlan_filter_hw
	cbnz	w0, LBB0_1
; %bb.4:
	ldr	w0, [x20]
	bl	_htons
	mov	x1, x0
	ldr	w2, [x20, #24]
	ldr	w3, [x20, #8]
	mov	x0, x21
	mov	w4, #1
	bl	_hclge_set_vlan_filter_hw
	cbnz	w0, LBB0_1
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_hclge_update_vlan_filter_entries
	cbnz	w0, LBB0_1
; %bb.6:
	str	x22, [x20, #16]
Lloh3:
	adrp	x8, _HNAE3_PORT_BASE_VLAN_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNAE3_PORT_BASE_VLAN_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _HNAE3_PORT_BASE_VLAN_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HNAE3_PORT_BASE_VLAN_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x22
	csel	x8, x22, x9, eq
	str	x8, [x20, #40]
LBB0_7:
	mov	w0, #0
	ldr	w8, [x19, #8]
	str	w8, [x20, #8]
	ldr	d0, [x19]
	str	d0, [x20]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_PORT_BASE_VLAN_MODIFY,8,3 ; @HNAE3_PORT_BASE_VLAN_MODIFY
	.comm	_HNAE3_PORT_BASE_VLAN_DISABLE,8,3 ; @HNAE3_PORT_BASE_VLAN_DISABLE
	.comm	_HNAE3_PORT_BASE_VLAN_ENABLE,8,3 ; @HNAE3_PORT_BASE_VLAN_ENABLE
.subsections_via_symbols
