	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_set_vf_vlan_common
_hclge_set_vf_vlan_common:              ## @hclge_set_vf_vlan_common
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	8(%rdi), %esi
	movl	%r13d, %edi
	callq	_test_bit
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_15
LBB0_2:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	_HCLGE_OPC_VLAN_FILTER_VF_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-80(%rbp), %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	leaq	-64(%rbp), %rdi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	_HCLGE_CMD_FLAG_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -72(%rbp)
	leal	7(%r13), %eax
	testl	%r13d, %r13d
	cmovnsl	%r13d, %eax
	movl	%r13d, %ecx
	andb	$7, %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	sarl	$3, %eax
	movslq	%eax, %r14
	movl	%r12d, %edi
	movq	-80(%rbp), %r12
	movq	-64(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	_cpu_to_le16
	movl	%eax, 20(%r12)
	movl	%r15d, (%r12)
	cmpl	$15, %r14d
	ja	LBB0_4
## %bb.3:
	shlq	$3, %r14
	addq	8(%r12), %r14
	jmp	LBB0_5
LBB0_4:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	leaq	(%rax,%r14,8), %r14
	addq	$-128, %r14
LBB0_5:
	movq	%rbx, (%r14)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	12(%rbx), %rdi
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	16(%r12), %edx
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.12:
	cmpl	$2, %edx
	jb	LBB0_15
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_8:
	cmpl	$2, %edx
	jb	LBB0_15
## %bb.9:
	jne	LBB0_10
## %bb.11:
	movl	8(%rbx), %esi
	movl	%r13d, %edi
	callq	_set_bit
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
LBB0_14:
	movq	(%rbx), %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_VLAN_FILTER_VF_CFG,4,2 ## @HCLGE_OPC_VLAN_FILTER_VF_CFG
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ## @HCLGE_CMD_FLAG_NEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Send vf vlan command fail, ret =%d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"vf vlan table is full, vf vlan filter is disabled\n"

L_.str.2:                               ## @.str.2
	.asciz	"Add vf vlan filter fail, ret =%d.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Kill vf vlan filter fail, ret =%d.\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_HCLGE_MAX_VF_BYTES,8,3         ## @HCLGE_MAX_VF_BYTES
	.comm	_HCLGE_VF_VLAN_DEL_NO_FOUND,4,2 ## @HCLGE_VF_VLAN_DEL_NO_FOUND
	.comm	_HCLGE_VF_VLAN_NO_ENTRY,4,2     ## @HCLGE_VF_VLAN_NO_ENTRY
	.no_dead_strip	_hclge_set_vf_vlan_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_set_vf_vlan_common
_hclge_set_vf_vlan_common:              ; @hclge_set_vf_vlan_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w1, [x0, #8]
	mov	x0, x20
	bl	_test_bit
	cbnz	w21, LBB0_3
; %bb.1:
	cbz	x0, LBB0_3
LBB0_2:
	mov	w22, #0
	b	LBB0_8
LBB0_3:
Lloh3:
	adrp	x23, _HCLGE_OPC_VLAN_FILTER_VF_CFG@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HCLGE_OPC_VLAN_FILTER_VF_CFG@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x24, sp, #8
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	add	x0, x24, #16
	ldr	w1, [x23]
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
Lloh5:
	adrp	x8, _HCLGE_CMD_FLAG_NEXT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCLGE_CMD_FLAG_NEXT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp, #16]
	orr	w8, w8, w0
	str	w8, [sp, #16]
	add	w8, w20, #7
	cmp	w20, #0
	csel	w8, w8, w20, lt
	asr	w27, w8, #3
	sbfx	x25, x8, #3, #29
	and	w8, w20, #0x7
	mov	w9, #1
	lsl	w24, w9, w8
	ldr	x23, [sp, #8]
	ldr	x26, [sp, #24]
	mov	x0, x22
	bl	_cpu_to_le16
	str	w0, [x23, #20]
	str	w21, [x23]
	cmp	w27, #15
	b.hi	LBB0_5
; %bb.4:
	ldr	x8, [x23, #8]
	add	x8, x8, x25, lsl #3
	b	LBB0_6
LBB0_5:
	ldr	x8, [x26, #8]
	add	x8, x8, x25, lsl #3
	sub	x8, x8, #128
LBB0_6:
	str	x24, [x8]
	add	x0, x19, #12
	add	x1, sp, #8
	mov	w2, #2
	bl	_hclge_cmd_send
	cbz	w0, LBB0_10
; %bb.7:
	mov	x22, x0
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
LBB0_8:
	ldr	x8, [sp, #40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.9:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_10:
	ldr	w2, [x23, #16]
	cmp	w2, #2
	cbz	w21, LBB0_13
; %bb.11:
	b.lo	LBB0_2
; %bb.12:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_13:
	b.lo	LBB0_2
; %bb.14:
	b.ne	LBB0_16
; %bb.15:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_set_bit
	ldr	x0, [x19]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	mov	w22, #0
	b	LBB0_8
LBB0_16:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_17:
	ldr	x0, [x19]
	bl	_dev_err
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_VLAN_FILTER_VF_CFG,4,2 ; @HCLGE_OPC_VLAN_FILTER_VF_CFG
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ; @HCLGE_CMD_FLAG_NEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Send vf vlan command fail, ret =%d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"vf vlan table is full, vf vlan filter is disabled\n"

l_.str.2:                               ; @.str.2
	.asciz	"Add vf vlan filter fail, ret =%d.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Kill vf vlan filter fail, ret =%d.\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_HCLGE_MAX_VF_BYTES,8,3         ; @HCLGE_MAX_VF_BYTES
	.comm	_HCLGE_VF_VLAN_DEL_NO_FOUND,4,2 ; @HCLGE_VF_VLAN_DEL_NO_FOUND
	.comm	_HCLGE_VF_VLAN_NO_ENTRY,4,2     ; @HCLGE_VF_VLAN_NO_ENTRY
	.no_dead_strip	_hclge_set_vf_vlan_common
.subsections_via_symbols
