	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_vfpf_update_vlan         ## -- Begin function bnx2x_vfpf_update_vlan
	.p2align	4, 0x90
_bnx2x_vfpf_update_vlan:                ## @bnx2x_vfpf_update_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PFVF_CAP_VLAN_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rdi, %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rdi), %rbx
	leaq	12(%rbx), %r14
	movq	_CHANNEL_TLV_SET_Q_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$24, %ecx
	callq	_bnx2x_vfpf_prep
	movq	_VFPF_SET_Q_FILTERS_MAC_VLAN_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	%r15d, 24(%rbx)
	movl	$1, 8(%rbx)
	movq	_VFPF_Q_FILTER_VLAN_TAG_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, 4(%rcx)
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	_VFPF_Q_FILTER_SET@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 4(%rcx)
LBB0_4:
	movq	%r13, %rdi
	callq	_bnx2x_sample_bulletin
	movl	4(%r13), %eax
	movq	_VLAN_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BNX2X_ERR
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_1:
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_6:
	leaq	8(%rbx), %r15
	movq	16(%rbx), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	12(%rbx), %edx
	movq	_CHANNEL_TLV_LIST_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$4, %r8d
	callq	_bnx2x_add_tlv
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_bnx2x_dp_tlv_list
	movl	(%r13), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_send_msg2pf
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	jmp	LBB0_11
LBB0_8:
	movq	(%rbx), %rax
	movq	_PFVF_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_11:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_vfpf_finalize
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testl	%r12d, %r12d
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PFVF_CAP_VLAN_FILTER,4,2       ## @PFVF_CAP_VLAN_FILTER
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HV does not support vlan filtering\n"

	.comm	_CHANNEL_TLV_SET_Q_FILTERS,4,2  ## @CHANNEL_TLV_SET_Q_FILTERS
	.comm	_VFPF_SET_Q_FILTERS_MAC_VLAN_CHANGED,4,2 ## @VFPF_SET_Q_FILTERS_MAC_VLAN_CHANGED
	.comm	_VFPF_Q_FILTER_VLAN_TAG_VALID,4,2 ## @VFPF_Q_FILTER_VLAN_TAG_VALID
	.comm	_VFPF_Q_FILTER_SET,4,2          ## @VFPF_Q_FILTER_SET
	.comm	_VLAN_VALID,4,2                 ## @VLAN_VALID
L_.str.1:                               ## @.str.1
	.asciz	"Hypervisor will decline the request, avoiding\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CHANNEL_TLV_LIST_END,4,2       ## @CHANNEL_TLV_LIST_END
L_.str.2:                               ## @.str.2
	.asciz	"failed to send message to pf. rc was %d\n"

	.comm	_PFVF_STATUS_SUCCESS,8,3        ## @PFVF_STATUS_SUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"vfpf %s VLAN %d failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"add"

L_.str.5:                               ## @.str.5
	.asciz	"del"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_vfpf_update_vlan         ; -- Begin function bnx2x_vfpf_update_vlan
	.p2align	2
_bnx2x_vfpf_update_vlan:                ; @bnx2x_vfpf_update_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _PFVF_CAP_VLAN_FILTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PFVF_CAP_VLAN_FILTER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x22, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	add	x20, x23, #12
Lloh3:
	adrp	x8, _CHANNEL_TLV_SET_Q_FILTERS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHANNEL_TLV_SET_Q_FILTERS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #24
	bl	_bnx2x_vfpf_prep
Lloh6:
	adrp	x8, _VFPF_SET_Q_FILTERS_MAC_VLAN_CHANGED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VFPF_SET_Q_FILTERS_MAC_VLAN_CHANGED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w24, w8, [x23, #24]
	mov	w8, #1
	str	w8, [x23, #8]
Lloh9:
	adrp	x8, _VFPF_Q_FILTER_VLAN_TAG_VALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VFPF_Q_FILTER_VLAN_TAG_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	ldr	x8, [x23, #16]
	str	w9, [x8, #4]
	cbz	w22, LBB0_3
; %bb.2:
Lloh12:
	adrp	x10, _VFPF_Q_FILTER_SET@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VFPF_Q_FILTER_SET@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8, #4]
LBB0_3:
	mov	x0, x19
	bl	_bnx2x_sample_bulletin
	ldr	w8, [x19, #4]
Lloh15:
	adrp	x9, _VLAN_VALID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VLAN_VALID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_7
; %bb.4:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_BNX2X_ERR
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_11
LBB0_6:
Lloh23:
	adrp	x8, _BNX2X_MSG_IOV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	mov	w24, #0
	b	LBB0_12
LBB0_7:
	add	x24, x23, #8
	ldr	x8, [x23, #16]
	str	w21, [x8]
	ldr	w2, [x23, #12]
Lloh28:
	adrp	x8, _CHANNEL_TLV_LIST_END@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CHANNEL_TLV_LIST_END@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	w4, #4
	bl	_bnx2x_add_tlv
	mov	x0, x19
	mov	x1, x24
	bl	_bnx2x_dp_tlv_list
	ldr	w2, [x19]
	mov	x0, x19
	mov	x1, x23
	bl	_bnx2x_send_msg2pf
	cbz	w0, LBB0_9
; %bb.8:
	mov	x24, x0
	str	x24, [sp]
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BNX2X_ERR
	b	LBB0_11
LBB0_9:
	ldr	x8, [x23]
Lloh33:
	adrp	x9, _PFVF_STATUS_SUCCESS@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PFVF_STATUS_SUCCESS@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:
	mov	w24, #0
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_vfpf_finalize
LBB0_12:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
Lloh36:
	adrp	x8, l_.str.4@PAGE
Lloh37:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh38:
	adrp	x9, l_.str.5@PAGE
Lloh39:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w22, #0
	csel	x8, x9, x8, eq
	stp	x8, x21, [sp]
Lloh40:
	adrp	x0, l_.str.3@PAGE
Lloh41:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_PFVF_CAP_VLAN_FILTER,4,2       ; @PFVF_CAP_VLAN_FILTER
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HV does not support vlan filtering\n"

	.comm	_CHANNEL_TLV_SET_Q_FILTERS,4,2  ; @CHANNEL_TLV_SET_Q_FILTERS
	.comm	_VFPF_SET_Q_FILTERS_MAC_VLAN_CHANGED,4,2 ; @VFPF_SET_Q_FILTERS_MAC_VLAN_CHANGED
	.comm	_VFPF_Q_FILTER_VLAN_TAG_VALID,4,2 ; @VFPF_Q_FILTER_VLAN_TAG_VALID
	.comm	_VFPF_Q_FILTER_SET,4,2          ; @VFPF_Q_FILTER_SET
	.comm	_VLAN_VALID,4,2                 ; @VLAN_VALID
l_.str.1:                               ; @.str.1
	.asciz	"Hypervisor will decline the request, avoiding\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CHANNEL_TLV_LIST_END,4,2       ; @CHANNEL_TLV_LIST_END
l_.str.2:                               ; @.str.2
	.asciz	"failed to send message to pf. rc was %d\n"

	.comm	_PFVF_STATUS_SUCCESS,8,3        ; @PFVF_STATUS_SUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"vfpf %s VLAN %d failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"add"

l_.str.5:                               ; @.str.5
	.asciz	"del"

.subsections_via_symbols
