	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_pf_cfg_vlan_filtering
_qlcnic_sriov_pf_cfg_vlan_filtering:    ## @qlcnic_sriov_pf_cfg_vlan_filtering
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_QLCNIC_CMD_SET_NIC_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	-32(%rbp), %rax
	movl	$4, 4(%rax)
	movq	_QLCNIC_VLAN_FILTERING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	orl	%ecx, 8(%r14)
	movq	_BIT_16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rax)
	movq	%r14, %rdi
	callq	_qlcnic_84xx_check
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_QLC_SRIOV_ALLOW_VLAN0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-32(%rbp), %rcx
	orl	%eax, 4(%rcx)
	jmp	LBB0_5
LBB0_4:
	notl	%ecx
	andl	%ecx, 8(%r14)
LBB0_5:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_7:
	leaq	-32(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_SET_NIC_INFO,4,2    ## @QLCNIC_CMD_SET_NIC_INFO
	.comm	_QLCNIC_VLAN_FILTERING,4,2      ## @QLCNIC_VLAN_FILTERING
	.comm	_BIT_16,4,2                     ## @BIT_16
	.comm	_QLC_SRIOV_ALLOW_VLAN0,4,2      ## @QLC_SRIOV_ALLOW_VLAN0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to configure VLAN filtering, err=%d\n"

	.no_dead_strip	_qlcnic_sriov_pf_cfg_vlan_filtering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_pf_cfg_vlan_filtering
_qlcnic_sriov_pf_cfg_vlan_filtering:    ; @qlcnic_sriov_pf_cfg_vlan_filtering
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _QLCNIC_CMD_SET_NIC_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_SET_NIC_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [sp, #8]
	mov	w9, #4
	str	w9, [x8, #4]
Lloh3:
	adrp	x9, _QLCNIC_VLAN_FILTERING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QLCNIC_VLAN_FILTERING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cbz	x21, LBB0_4
; %bb.2:
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
Lloh6:
	adrp	x9, _BIT_16@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BIT_16@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x8, #4]
	orr	w9, w10, w9
	str	w9, [x8, #4]
	mov	x0, x19
	bl	_qlcnic_84xx_check
	cbz	x0, LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _QLC_SRIOV_ALLOW_VLAN0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLC_SRIOV_ALLOW_VLAN0@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19, #8]
	bic	w8, w8, w9
	str	w8, [x19, #8]
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_7:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_SET_NIC_INFO,4,2    ; @QLCNIC_CMD_SET_NIC_INFO
	.comm	_QLCNIC_VLAN_FILTERING,4,2      ; @QLCNIC_VLAN_FILTERING
	.comm	_BIT_16,4,2                     ; @BIT_16
	.comm	_QLC_SRIOV_ALLOW_VLAN0,4,2      ; @QLC_SRIOV_ALLOW_VLAN0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to configure VLAN filtering, err=%d\n"

	.no_dead_strip	_qlcnic_sriov_pf_cfg_vlan_filtering
.subsections_via_symbols
