	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_filters_validate_vlan
_bnx2x_filters_validate_vlan:           ## @bnx2x_filters_validate_vlan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	4(%rsi), %esi
	callq	_BP_VF_BULLETIN
	movl	(%rax), %eax
	movq	_VLAN_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_3
## %bb.1:
	movq	_VFPF_Q_FILTER_VLAN_TAG_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bnx2x_vf_filters_contain
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERR
	jmp	LBB0_4
LBB0_3:
	movq	(%r14), %r14
	movq	%rbx, %rdi
	callq	_vf_rxq_count
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r14
	jle	LBB0_5
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_VALID,4,2                 ## @VLAN_VALID
	.comm	_VFPF_Q_FILTER_VLAN_TAG_VALID,4,2 ## @VFPF_Q_FILTER_VLAN_TAG_VALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF[%d] attempted to configure vlan but one was already set by Hypervisor. Aborting request\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_bnx2x_filters_validate_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_filters_validate_vlan
_bnx2x_filters_validate_vlan:           ; @bnx2x_filters_validate_vlan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	ldr	w1, [x1, #4]
	bl	_BP_VF_BULLETIN
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VLAN_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VLAN_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _VFPF_Q_FILTER_VLAN_TAG_VALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VFPF_Q_FILTER_VLAN_TAG_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bnx2x_vf_filters_contain
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
	b	LBB0_4
LBB0_3:
	ldr	x20, [x20]
	mov	x0, x19
	bl	_vf_rxq_count
	cmp	x20, x0
	b.le	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_VALID,4,2                 ; @VLAN_VALID
	.comm	_VFPF_Q_FILTER_VLAN_TAG_VALID,4,2 ; @VFPF_Q_FILTER_VLAN_TAG_VALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF[%d] attempted to configure vlan but one was already set by Hypervisor. Aborting request\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_bnx2x_filters_validate_vlan
.subsections_via_symbols
