	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_vfpf_storm_rx_mode       ## -- Begin function bnx2x_vfpf_storm_rx_mode
	.p2align	4, 0x90
_bnx2x_vfpf_storm_rx_mode:              ## @bnx2x_vfpf_storm_rx_mode
	.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	%rdi, %r15
	movl	(%rdi), %r12d
	movq	16(%rdi), %r13
	leaq	8(%r13), %r14
	movq	_CHANNEL_TLV_SET_Q_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$24, %ecx
	callq	_bnx2x_vfpf_prep
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_DP
	movq	_BNX2X_RX_MODE_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_2
## %bb.1:
	movq	_VFPF_RX_MASK_ACCEPT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	movq	_VFPF_RX_MASK_ACCEPT_MATCHED_MULTICAST@GOTPCREL(%rip), %rcx
	movq	_VFPF_RX_MASK_ACCEPT_MATCHED_UNICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_VFPF_RX_MASK_ACCEPT_BROADCAST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 28(%r13)
	movq	_BNX2X_RX_MODE_PROMISC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_5
## %bb.3:
	movq	_VFPF_RX_MASK_ACCEPT_ANY_VLAN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_4:
	movl	%eax, 28(%r13)
LBB0_5:
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.6:
	movq	_VFPF_RX_MASK_ACCEPT_ANY_VLAN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 28(%r13)
LBB0_7:
	movq	_VFPF_SET_Q_FILTERS_RX_MASK_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r13)
	movq	$0, 16(%r13)
	movl	8(%r13), %edx
	movq	_CHANNEL_TLV_LIST_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$4, %r8d
	callq	_bnx2x_add_tlv
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_dp_tlv_list
	movl	4(%r15), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_send_msg2pf
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_BNX2X_ERR
LBB0_9:
	movl	(%r13), %esi
	movq	_PFVF_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_vfpf_finalize
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNEL_TLV_SET_Q_FILTERS,4,2  ## @CHANNEL_TLV_SET_Q_FILTERS
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rx mode is %d\n"

	.comm	_BNX2X_RX_MODE_NONE,4,2         ## @BNX2X_RX_MODE_NONE
	.comm	_VFPF_RX_MASK_ACCEPT_NONE,4,2   ## @VFPF_RX_MASK_ACCEPT_NONE
	.comm	_VFPF_RX_MASK_ACCEPT_MATCHED_MULTICAST,4,2 ## @VFPF_RX_MASK_ACCEPT_MATCHED_MULTICAST
	.comm	_VFPF_RX_MASK_ACCEPT_MATCHED_UNICAST,4,2 ## @VFPF_RX_MASK_ACCEPT_MATCHED_UNICAST
	.comm	_VFPF_RX_MASK_ACCEPT_BROADCAST,4,2 ## @VFPF_RX_MASK_ACCEPT_BROADCAST
	.comm	_BNX2X_RX_MODE_PROMISC,4,2      ## @BNX2X_RX_MODE_PROMISC
	.comm	_VFPF_RX_MASK_ACCEPT_ANY_VLAN,4,2 ## @VFPF_RX_MASK_ACCEPT_ANY_VLAN
	.comm	_VFPF_SET_Q_FILTERS_RX_MASK_CHANGED,4,2 ## @VFPF_SET_Q_FILTERS_RX_MASK_CHANGED
	.comm	_CHANNEL_TLV_LIST_END,4,2       ## @CHANNEL_TLV_LIST_END
L_.str.1:                               ## @.str.1
	.asciz	"Sending a message failed: %d\n"

	.comm	_PFVF_STATUS_SUCCESS,4,2        ## @PFVF_STATUS_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"Set Rx mode failed: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_vfpf_storm_rx_mode       ; -- Begin function bnx2x_vfpf_storm_rx_mode
	.p2align	2
_bnx2x_vfpf_storm_rx_mode:              ; @bnx2x_vfpf_storm_rx_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	w22, [x0]
	ldr	x21, [x0, #16]
	add	x20, x21, #8
Lloh0:
	adrp	x8, _CHANNEL_TLV_SET_Q_FILTERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHANNEL_TLV_SET_Q_FILTERS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #24
	bl	_bnx2x_vfpf_prep
Lloh3:
	adrp	x8, _NETIF_MSG_IFUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_DP
Lloh8:
	adrp	x8, _BNX2X_RX_MODE_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BNX2X_RX_MODE_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _VFPF_RX_MASK_ACCEPT_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VFPF_RX_MASK_ACCEPT_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	b	LBB0_4
LBB0_2:
Lloh14:
	adrp	x8, _VFPF_RX_MASK_ACCEPT_MATCHED_MULTICAST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VFPF_RX_MASK_ACCEPT_MATCHED_MULTICAST@GOTPAGEOFF]
Lloh16:
	adrp	x9, _VFPF_RX_MASK_ACCEPT_MATCHED_UNICAST@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VFPF_RX_MASK_ACCEPT_MATCHED_UNICAST@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _VFPF_RX_MASK_ACCEPT_BROADCAST@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VFPF_RX_MASK_ACCEPT_BROADCAST@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #28]
Lloh23:
	adrp	x9, _BNX2X_RX_MODE_PROMISC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BNX2X_RX_MODE_PROMISC@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w22, w9
	b.ne	LBB0_5
; %bb.3:
Lloh26:
	adrp	x9, _VFPF_RX_MASK_ACCEPT_ANY_VLAN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _VFPF_RX_MASK_ACCEPT_ANY_VLAN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_4:
	str	w8, [x21, #28]
LBB0_5:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_7
; %bb.6:
Lloh29:
	adrp	x9, _VFPF_RX_MASK_ACCEPT_ANY_VLAN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VFPF_RX_MASK_ACCEPT_ANY_VLAN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21, #28]
LBB0_7:
Lloh32:
	adrp	x8, _VFPF_SET_Q_FILTERS_RX_MASK_CHANGED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VFPF_SET_Q_FILTERS_RX_MASK_CHANGED@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x21, #24]
	orr	w8, w9, w8
	str	w8, [x21, #24]
	str	xzr, [x21, #16]
	ldr	w2, [x21, #8]
Lloh35:
	adrp	x8, _CHANNEL_TLV_LIST_END@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CHANNEL_TLV_LIST_END@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #4
	bl	_bnx2x_add_tlv
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_dp_tlv_list
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2x_send_msg2pf
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.8:
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_BNX2X_ERR
LBB0_9:
	ldr	w1, [x21]
Lloh40:
	adrp	x8, _PFVF_STATUS_SUCCESS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PFVF_STATUS_SUCCESS@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w1, w8
	b.eq	LBB0_11
; %bb.10:
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BNX2X_ERR
Lloh45:
	adrp	x8, _EINVAL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_vfpf_finalize
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNEL_TLV_SET_Q_FILTERS,4,2  ; @CHANNEL_TLV_SET_Q_FILTERS
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rx mode is %d\n"

	.comm	_BNX2X_RX_MODE_NONE,4,2         ; @BNX2X_RX_MODE_NONE
	.comm	_VFPF_RX_MASK_ACCEPT_NONE,4,2   ; @VFPF_RX_MASK_ACCEPT_NONE
	.comm	_VFPF_RX_MASK_ACCEPT_MATCHED_MULTICAST,4,2 ; @VFPF_RX_MASK_ACCEPT_MATCHED_MULTICAST
	.comm	_VFPF_RX_MASK_ACCEPT_MATCHED_UNICAST,4,2 ; @VFPF_RX_MASK_ACCEPT_MATCHED_UNICAST
	.comm	_VFPF_RX_MASK_ACCEPT_BROADCAST,4,2 ; @VFPF_RX_MASK_ACCEPT_BROADCAST
	.comm	_BNX2X_RX_MODE_PROMISC,4,2      ; @BNX2X_RX_MODE_PROMISC
	.comm	_VFPF_RX_MASK_ACCEPT_ANY_VLAN,4,2 ; @VFPF_RX_MASK_ACCEPT_ANY_VLAN
	.comm	_VFPF_SET_Q_FILTERS_RX_MASK_CHANGED,4,2 ; @VFPF_SET_Q_FILTERS_RX_MASK_CHANGED
	.comm	_CHANNEL_TLV_LIST_END,4,2       ; @CHANNEL_TLV_LIST_END
l_.str.1:                               ; @.str.1
	.asciz	"Sending a message failed: %d\n"

	.comm	_PFVF_STATUS_SUCCESS,4,2        ; @PFVF_STATUS_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"Set Rx mode failed: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
