	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclgevf_set_vlan_filter
_hclgevf_set_vlan_filter:               ## @hclgevf_set_vlan_filter
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	%esi, -72(%rbp)
	movl	%edx, -68(%rbp)
	callq	_hclgevf_ae_get_hdev
	movq	%rax, %r15
	movq	_HCLGEVF_MAX_VLAN_ID@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jge	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpl	%ebx, %eax
	jne	LBB0_4
## %bb.5:
	movq	_HCLGEVF_STATE_RST_HANDLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$4, %rsi
	callq	_test_bit
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.6:
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%r15), %esi
	movl	%r12d, %edi
	callq	_set_bit
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r14d, -64(%rbp)
	leaq	-60(%rbp), %rdi
	leaq	-68(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	-52(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_HCLGE_MBX_SET_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_MBX_VLAN_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	movl	$5, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_hclgevf_send_mbx_msg
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movl	-68(%rbp), %edi
	movl	(%r15), %esi
	callq	_set_bit
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGEVF_MAX_VLAN_ID,4,2        ## @HCLGEVF_MAX_VLAN_ID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_HCLGEVF_STATE_RST_HANDLING,4,2 ## @HCLGEVF_STATE_RST_HANDLING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_HCLGE_MBX_SET_VLAN,4,2         ## @HCLGE_MBX_SET_VLAN
	.comm	_HCLGE_MBX_VLAN_FILTER,4,2      ## @HCLGE_MBX_VLAN_FILTER
	.comm	_HCLGEVF_VLAN_MBX_MSG_LEN,4,2   ## @HCLGEVF_VLAN_MBX_MSG_LEN
	.no_dead_strip	_hclgevf_set_vlan_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclgevf_set_vlan_filter
_hclgevf_set_vlan_filter:               ; @hclgevf_set_vlan_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	stp	w2, w1, [sp, #12]
	bl	_hclgevf_ae_get_hdev
Lloh3:
	adrp	x8, _HCLGEVF_MAX_VLAN_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGEVF_MAX_VLAN_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x20, x0
Lloh8:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	cmp	w0, w22
	b.ne	LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _HCLGEVF_STATE_RST_HANDLING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HCLGEVF_STATE_RST_HANDLING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_test_bit
	cbz	w19, LBB0_10
; %bb.4:
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_set_bit
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	ldr	x8, [sp, #40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	str	w19, [sp, #20]
	add	x21, sp, #20
	add	x0, x21, #4
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	add	x0, x21, #12
	add	x1, sp, #16
	mov	w2, #4
	bl	_memcpy
Lloh21:
	adrp	x8, _HCLGE_MBX_SET_VLAN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HCLGE_MBX_SET_VLAN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _HCLGE_MBX_VLAN_FILTER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HCLGE_MBX_VLAN_FILTER@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	add	x3, sp, #20
	mov	x0, x20
	mov	w4, #5
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_hclgevf_send_mbx_msg
	mov	x21, x0
	cbz	w19, LBB0_8
; %bb.11:
	cbz	w21, LBB0_8
; %bb.12:
	ldr	w0, [sp, #12]
	ldr	w1, [x20]
	bl	_set_bit
	b	LBB0_8
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGEVF_MAX_VLAN_ID,4,2        ; @HCLGEVF_MAX_VLAN_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_HCLGEVF_STATE_RST_HANDLING,4,2 ; @HCLGEVF_STATE_RST_HANDLING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_HCLGE_MBX_SET_VLAN,4,2         ; @HCLGE_MBX_SET_VLAN
	.comm	_HCLGE_MBX_VLAN_FILTER,4,2      ; @HCLGE_MBX_VLAN_FILTER
	.comm	_HCLGEVF_VLAN_MBX_MSG_LEN,4,2   ; @HCLGEVF_VLAN_MBX_MSG_LEN
	.no_dead_strip	_hclgevf_set_vlan_filter
.subsections_via_symbols
