	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_handle_afex_cmd
_bnx2x_handle_afex_cmd:                 ## @bnx2x_handle_afex_cmd
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_BP_ABS_FUNC
	movl	%eax, %r15d
	movq	_DRV_STATUS_AFEX_LISTGET_REQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_afex_param1_to_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_BP_FW_MB_IDX
	movl	(%rbx,%rax,4), %esi
	movq	%r13, %rdi
	callq	_SHMEM2_RD
	movl	%eax, %ebx
	movq	_BNX2X_MSG_MCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DP
	movq	_VIF_LIST_RULE_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_bnx2x_afex_handle_vif_list_cmd
LBB0_2:
	movq	_DRV_STATUS_AFEX_LISTSET_REQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_afex_param1_to_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_BP_FW_MB_IDX
	movl	(%rbx,%rax,4), %esi
	movq	%r13, %rdi
	callq	_SHMEM2_RD
	movl	%eax, %r12d
	movq	_afex_param2_to_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_BP_FW_MB_IDX
	movl	(%rbx,%rax,4), %esi
	movq	%r13, %rdi
	callq	_SHMEM2_RD
	movl	%eax, %ebx
	movq	_BNX2X_MSG_MCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP
	movq	_VIF_LIST_RULE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_bnx2x_afex_handle_vif_list_cmd
LBB0_4:
	movq	_DRV_STATUS_AFEX_STATSGET_REQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_afex_scratchpad_addr_to_write@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_BP_FW_MB_IDX
	movl	(%rbx,%rax,4), %esi
	movq	%r13, %rdi
	callq	_SHMEM2_RD
	movl	%eax, %r12d
	movq	_afex_param1_to_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_BP_FW_MB_IDX
	movl	(%rbx,%rax,4), %esi
	movq	%r13, %rdi
	callq	_SHMEM2_RD
	movl	%eax, %ebx
	movq	_BNX2X_MSG_MCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_DP
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_bnx2x_afex_collect_stats
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_REG_WR
	movq	_DRV_MSG_CODE_AFEX_STATSGET_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_bnx2x_fw_command
LBB0_6:
	movq	_DRV_STATUS_AFEX_VIFSET_REQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.7:
	movq	_func_mf_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %r12
	leaq	(%r12,%r12,2), %rcx
	movl	8(%rax,%rcx,4), %esi
	movq	%r13, %rdi
	callq	_MF_CFG_RD
	movl	%eax, %r14d
	movq	(%r13), %rbx
	movq	%r13, %rdi
	callq	_BP_VN
	movl	%r14d, (%rbx,%rax,4)
	movq	_BNX2X_MSG_MCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DP
	movq	_FUNC_MF_CFG_FUNC_DISABLED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.10:
	movq	%r13, %rdi
	callq	_bnx2x_link_report
	movq	%r13, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_bnx2x_afex_func_update
	movl	$-1, 8(%r13)
	jmp	LBB0_11
LBB0_8:
	movq	_BAR_XSTRORM_INTMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_BP_FUNC
	movl	%eax, %edi
	callq	_XSTORM_RATE_SHAPING_PER_VN_VARS_OFFSET
	addl	%eax, %r15d
	movq	(%r13), %rbx
	movq	%r13, %rdi
	callq	_BP_VN
	movl	%r14d, (%rbx,%rax,4)
	movq	%r13, %rdi
	callq	_BP_VN
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_bnx2x_calc_vn_max
	movq	-72(%rbp), %rbx
	movq	%r13, %rdi
	callq	_BP_VN
	movl	(%rbx,%rax,4), %eax
	movl	%eax, -64(%rbp)
	movq	_RS_PERIODIC_TIMEOUT_USEC@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, -60(%rbp)
	leaq	-64(%rbp), %rcx
	movl	$8, %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	___storm_memset_struct
	movq	_func_mf_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %r12
	leaq	(%r12,%r12,2), %rbx
	movl	4(%rax,%rbx), %esi
	movq	%r13, %rdi
	callq	_MF_CFG_RD
	movl	%eax, %r15d
	movq	_FUNC_MF_CFG_E1HOV_TAG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_FUNC_MF_CFG_E1HOV_TAG_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	movq	_func_mf_config@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	4(%rax,%rbx), %esi
	movq	%r13, %rdi
	callq	_MF_CFG_RD
	movq	_FUNC_MF_CFG_AFEX_VLAN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_FUNC_MF_CFG_AFEX_VLAN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_FUNC_MF_CFG_TRANSMIT_PRIORITY_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r14d
	movq	_FUNC_MF_CFG_TRANSMIT_PRIORITY_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r14d
	movq	_VLAN_PRIO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	orl	%eax, %r14d
	movq	(%r12), %rax
	movl	(%rax,%rbx), %esi
	movq	%r13, %rdi
	callq	_MF_CFG_RD
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_FUNC_MF_CFG_AFEX_VLAN_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_FUNC_MF_CFG_AFEX_VLAN_MODE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_func_mf_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx), %esi
	movq	%r13, %rdi
	callq	_MF_CFG_RD
	movq	_FUNC_MF_CFG_AFEX_COS_FILTER_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_FUNC_MF_CFG_AFEX_COS_FILTER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_bnx2x_afex_func_update
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	andl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r12d
	movl	%r14d, 8(%r13)
	movl	%r12d, 12(%r13)
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_STATUS_AFEX_LISTGET_REQ,4,2 ## @DRV_STATUS_AFEX_LISTGET_REQ
	.comm	_afex_param1_to_driver,8,3      ## @afex_param1_to_driver
	.comm	_BNX2X_MSG_MCP,4,2              ## @BNX2X_MSG_MCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"afex: got MCP req LISTGET_REQ for vifid 0x%x\n"

	.comm	_VIF_LIST_RULE_GET,4,2          ## @VIF_LIST_RULE_GET
	.comm	_DRV_STATUS_AFEX_LISTSET_REQ,4,2 ## @DRV_STATUS_AFEX_LISTSET_REQ
	.comm	_afex_param2_to_driver,8,3      ## @afex_param2_to_driver
L_.str.1:                               ## @.str.1
	.asciz	"afex: got MCP req LISTSET_REQ for vifid 0x%x addrs 0x%x\n"

	.comm	_VIF_LIST_RULE_SET,4,2          ## @VIF_LIST_RULE_SET
	.comm	_DRV_STATUS_AFEX_STATSGET_REQ,4,2 ## @DRV_STATUS_AFEX_STATSGET_REQ
	.comm	_afex_scratchpad_addr_to_write,8,3 ## @afex_scratchpad_addr_to_write
L_.str.2:                               ## @.str.2
	.asciz	"afex: got MCP req STATSGET_REQ, write to addr 0x%x\n"

	.comm	_DRV_MSG_CODE_AFEX_STATSGET_ACK,4,2 ## @DRV_MSG_CODE_AFEX_STATSGET_ACK
	.comm	_DRV_STATUS_AFEX_VIFSET_REQ,4,2 ## @DRV_STATUS_AFEX_VIFSET_REQ
	.comm	_func_mf_config,8,3             ## @func_mf_config
L_.str.3:                               ## @.str.3
	.asciz	"afex: got MCP req VIFSET_REQ, mf_config 0x%x\n"

	.comm	_FUNC_MF_CFG_FUNC_DISABLED,4,2  ## @FUNC_MF_CFG_FUNC_DISABLED
	.comm	_BAR_XSTRORM_INTMEM,4,2         ## @BAR_XSTRORM_INTMEM
	.comm	_RS_PERIODIC_TIMEOUT_USEC,4,2   ## @RS_PERIODIC_TIMEOUT_USEC
	.comm	_FUNC_MF_CFG_E1HOV_TAG_MASK,4,2 ## @FUNC_MF_CFG_E1HOV_TAG_MASK
	.comm	_FUNC_MF_CFG_E1HOV_TAG_SHIFT,4,2 ## @FUNC_MF_CFG_E1HOV_TAG_SHIFT
	.comm	_FUNC_MF_CFG_AFEX_VLAN_MASK,4,2 ## @FUNC_MF_CFG_AFEX_VLAN_MASK
	.comm	_FUNC_MF_CFG_AFEX_VLAN_SHIFT,4,2 ## @FUNC_MF_CFG_AFEX_VLAN_SHIFT
	.comm	_FUNC_MF_CFG_TRANSMIT_PRIORITY_MASK,4,2 ## @FUNC_MF_CFG_TRANSMIT_PRIORITY_MASK
	.comm	_FUNC_MF_CFG_TRANSMIT_PRIORITY_SHIFT,4,2 ## @FUNC_MF_CFG_TRANSMIT_PRIORITY_SHIFT
	.comm	_VLAN_PRIO_SHIFT,4,2            ## @VLAN_PRIO_SHIFT
	.comm	_FUNC_MF_CFG_AFEX_VLAN_MODE_MASK,4,2 ## @FUNC_MF_CFG_AFEX_VLAN_MODE_MASK
	.comm	_FUNC_MF_CFG_AFEX_VLAN_MODE_SHIFT,4,2 ## @FUNC_MF_CFG_AFEX_VLAN_MODE_SHIFT
	.comm	_FUNC_MF_CFG_AFEX_COS_FILTER_MASK,4,2 ## @FUNC_MF_CFG_AFEX_COS_FILTER_MASK
	.comm	_FUNC_MF_CFG_AFEX_COS_FILTER_SHIFT,4,2 ## @FUNC_MF_CFG_AFEX_COS_FILTER_SHIFT
	.no_dead_strip	_bnx2x_handle_afex_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_handle_afex_cmd
_bnx2x_handle_afex_cmd:                 ; @bnx2x_handle_afex_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	bl	_BP_ABS_FUNC
	mov	x20, x0
Lloh0:
	adrp	x8, _DRV_STATUS_AFEX_LISTGET_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_STATUS_AFEX_LISTGET_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x25, _afex_param1_to_driver@GOTPAGE
Lloh4:
	ldr	x25, [x25, _afex_param1_to_driver@GOTPAGEOFF]
Lloh5:
	adrp	x24, _BNX2X_MSG_MCP@GOTPAGE
Lloh6:
	ldr	x24, [x24, _BNX2X_MSG_MCP@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	x22, [x25]
	mov	x0, x19
	bl	_BP_FW_MB_IDX
	ldr	w1, [x22, x0, lsl #2]
	mov	x0, x19
	bl	_SHMEM2_RD
	mov	x22, x0
	ldr	w0, [x24]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_DP
Lloh9:
	adrp	x8, _VIF_LIST_RULE_GET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIF_LIST_RULE_GET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	bl	_bnx2x_afex_handle_vif_list_cmd
LBB0_2:
Lloh12:
	adrp	x8, _DRV_STATUS_AFEX_LISTSET_REQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRV_STATUS_AFEX_LISTSET_REQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	x22, [x25]
	mov	x0, x19
	bl	_BP_FW_MB_IDX
	ldr	w1, [x22, x0, lsl #2]
	mov	x0, x19
	bl	_SHMEM2_RD
	mov	x22, x0
Lloh15:
	adrp	x8, _afex_param2_to_driver@GOTPAGE
Lloh16:
	ldr	x8, [x8, _afex_param2_to_driver@GOTPAGEOFF]
Lloh17:
	ldr	x23, [x8]
	mov	x0, x19
	bl	_BP_FW_MB_IDX
	ldr	w1, [x23, x0, lsl #2]
	mov	x0, x19
	bl	_SHMEM2_RD
	mov	x23, x0
	ldr	w0, [x24]
	str	x23, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_DP
Lloh20:
	adrp	x8, _VIF_LIST_RULE_SET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VIF_LIST_RULE_SET@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x23
	bl	_bnx2x_afex_handle_vif_list_cmd
LBB0_4:
Lloh23:
	adrp	x8, _DRV_STATUS_AFEX_STATSGET_REQ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DRV_STATUS_AFEX_STATSGET_REQ@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
Lloh26:
	adrp	x8, _afex_scratchpad_addr_to_write@GOTPAGE
Lloh27:
	ldr	x8, [x8, _afex_scratchpad_addr_to_write@GOTPAGEOFF]
Lloh28:
	ldr	x22, [x8]
	mov	x0, x19
	bl	_BP_FW_MB_IDX
	ldr	w1, [x22, x0, lsl #2]
	mov	x0, x19
	bl	_SHMEM2_RD
	mov	x22, x0
	ldr	x23, [x25]
	mov	x0, x19
	bl	_BP_FW_MB_IDX
	ldr	w1, [x23, x0, lsl #2]
	mov	x0, x19
	bl	_SHMEM2_RD
	mov	x23, x0
	ldr	w0, [x24]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_DP
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x23
	bl	_bnx2x_afex_collect_stats
	ldr	w2, [sp, #24]
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WR
Lloh31:
	adrp	x8, _DRV_MSG_CODE_AFEX_STATSGET_ACK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DRV_MSG_CODE_AFEX_STATSGET_ACK@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bnx2x_fw_command
LBB0_6:
Lloh34:
	adrp	x8, _DRV_STATUS_AFEX_VIFSET_REQ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DRV_STATUS_AFEX_VIFSET_REQ@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.7:
Lloh37:
	adrp	x23, _func_mf_config@GOTPAGE
Lloh38:
	ldr	x23, [x23, _func_mf_config@GOTPAGEOFF]
	ldr	x8, [x23]
	mov	w9, #12
	smaddl	x8, w20, w9, x8
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_MF_CFG_RD
	mov	x21, x0
	ldr	x22, [x19]
	mov	x0, x19
	bl	_BP_VN
	str	w21, [x22, x0, lsl #2]
	ldr	w0, [x24]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_DP
Lloh41:
	adrp	x8, _FUNC_MF_CFG_FUNC_DISABLED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FUNC_MF_CFG_FUNC_DISABLED@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_bnx2x_link_report
	mov	x0, x19
	mov	w1, #65535
	mov	w2, #0
	mov	w3, #0
	bl	_bnx2x_afex_func_update
	mov	w8, #-1
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_9:
	sxtw	x22, w20
Lloh44:
	adrp	x8, _BAR_XSTRORM_INTMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BAR_XSTRORM_INTMEM@GOTPAGEOFF]
Lloh46:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_BP_FUNC
	bl	_XSTORM_RATE_SHAPING_PER_VN_VARS_OFFSET
	add	w20, w0, w20
	ldr	x24, [x19]
	mov	x0, x19
	bl	_BP_VN
	str	w21, [x24, x0, lsl #2]
	mov	x0, x19
	bl	_BP_VN
	mov	x1, x0
	add	x2, sp, #16
	mov	x0, x19
	bl	_bnx2x_calc_vn_max
	ldr	x24, [sp, #16]
	mov	x0, x19
	bl	_BP_VN
	ldr	w8, [x24, x0, lsl #2]
Lloh47:
	adrp	x9, _RS_PERIODIC_TIMEOUT_USEC@GOTPAGE
Lloh48:
	ldr	x9, [x9, _RS_PERIODIC_TIMEOUT_USEC@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	mul	w9, w9, w8
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	stp	w8, w9, [sp, #8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w2, #8
	bl	___storm_memset_struct
	ldr	x8, [x23]
	add	x9, x22, x22, lsl #1
	lsl	x24, x9, #2
	add	x8, x8, x24
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_MF_CFG_RD
Lloh50:
	adrp	x8, _FUNC_MF_CFG_E1HOV_TAG_MASK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _FUNC_MF_CFG_E1HOV_TAG_MASK@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _FUNC_MF_CFG_E1HOV_TAG_SHIFT@GOTPAGE
Lloh54:
	ldr	x9, [x9, _FUNC_MF_CFG_E1HOV_TAG_SHIFT@GOTPAGEOFF]
	and	w8, w8, w0
Lloh55:
	ldr	w9, [x9]
	asr	w20, w8, w9
	ldr	x8, [x23]
	add	x8, x8, x24
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_MF_CFG_RD
Lloh56:
	adrp	x8, _FUNC_MF_CFG_AFEX_VLAN_MASK@GOTPAGE
Lloh57:
	ldr	x8, [x8, _FUNC_MF_CFG_AFEX_VLAN_MASK@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh59:
	adrp	x9, _FUNC_MF_CFG_AFEX_VLAN_SHIFT@GOTPAGE
Lloh60:
	ldr	x9, [x9, _FUNC_MF_CFG_AFEX_VLAN_SHIFT@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh62:
	adrp	x9, _FUNC_MF_CFG_TRANSMIT_PRIORITY_MASK@GOTPAGE
Lloh63:
	ldr	x9, [x9, _FUNC_MF_CFG_TRANSMIT_PRIORITY_MASK@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	and	w9, w9, w21
Lloh65:
	adrp	x10, _FUNC_MF_CFG_TRANSMIT_PRIORITY_SHIFT@GOTPAGE
Lloh66:
	ldr	x10, [x10, _FUNC_MF_CFG_TRANSMIT_PRIORITY_SHIFT@GOTPAGEOFF]
Lloh67:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh68:
	adrp	x10, _VLAN_PRIO_SHIFT@GOTPAGE
Lloh69:
	ldr	x10, [x10, _VLAN_PRIO_SHIFT@GOTPAGEOFF]
Lloh70:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w21, w9, w8
	ldr	x8, [x23]
	ldr	w1, [x8, x24]
	mov	x0, x19
	bl	_MF_CFG_RD
	mov	x22, x0
Lloh71:
	adrp	x8, _FUNC_MF_CFG_AFEX_VLAN_MODE_MASK@GOTPAGE
Lloh72:
	ldr	x8, [x8, _FUNC_MF_CFG_AFEX_VLAN_MODE_MASK@GOTPAGEOFF]
Lloh73:
	ldr	w25, [x8]
Lloh74:
	adrp	x8, _FUNC_MF_CFG_AFEX_VLAN_MODE_SHIFT@GOTPAGE
Lloh75:
	ldr	x8, [x8, _FUNC_MF_CFG_AFEX_VLAN_MODE_SHIFT@GOTPAGEOFF]
Lloh76:
	ldr	w26, [x8]
	ldr	x8, [x23]
	ldr	w1, [x8, x24]
	mov	x0, x19
	bl	_MF_CFG_RD
Lloh77:
	adrp	x8, _FUNC_MF_CFG_AFEX_COS_FILTER_MASK@GOTPAGE
Lloh78:
	ldr	x8, [x8, _FUNC_MF_CFG_AFEX_COS_FILTER_MASK@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh80:
	adrp	x9, _FUNC_MF_CFG_AFEX_COS_FILTER_SHIFT@GOTPAGE
Lloh81:
	ldr	x9, [x9, _FUNC_MF_CFG_AFEX_COS_FILTER_SHIFT@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	asr	w3, w8, w9
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_bnx2x_afex_func_update
	cbnz	x0, LBB0_11
; %bb.10:
	and	w8, w25, w22
	asr	w8, w8, w26
	stp	w21, w8, [x19, #8]
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_STATUS_AFEX_LISTGET_REQ,4,2 ; @DRV_STATUS_AFEX_LISTGET_REQ
	.comm	_afex_param1_to_driver,8,3      ; @afex_param1_to_driver
	.comm	_BNX2X_MSG_MCP,4,2              ; @BNX2X_MSG_MCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"afex: got MCP req LISTGET_REQ for vifid 0x%x\n"

	.comm	_VIF_LIST_RULE_GET,4,2          ; @VIF_LIST_RULE_GET
	.comm	_DRV_STATUS_AFEX_LISTSET_REQ,4,2 ; @DRV_STATUS_AFEX_LISTSET_REQ
	.comm	_afex_param2_to_driver,8,3      ; @afex_param2_to_driver
l_.str.1:                               ; @.str.1
	.asciz	"afex: got MCP req LISTSET_REQ for vifid 0x%x addrs 0x%x\n"

	.comm	_VIF_LIST_RULE_SET,4,2          ; @VIF_LIST_RULE_SET
	.comm	_DRV_STATUS_AFEX_STATSGET_REQ,4,2 ; @DRV_STATUS_AFEX_STATSGET_REQ
	.comm	_afex_scratchpad_addr_to_write,8,3 ; @afex_scratchpad_addr_to_write
l_.str.2:                               ; @.str.2
	.asciz	"afex: got MCP req STATSGET_REQ, write to addr 0x%x\n"

	.comm	_DRV_MSG_CODE_AFEX_STATSGET_ACK,4,2 ; @DRV_MSG_CODE_AFEX_STATSGET_ACK
	.comm	_DRV_STATUS_AFEX_VIFSET_REQ,4,2 ; @DRV_STATUS_AFEX_VIFSET_REQ
	.comm	_func_mf_config,8,3             ; @func_mf_config
l_.str.3:                               ; @.str.3
	.asciz	"afex: got MCP req VIFSET_REQ, mf_config 0x%x\n"

	.comm	_FUNC_MF_CFG_FUNC_DISABLED,4,2  ; @FUNC_MF_CFG_FUNC_DISABLED
	.comm	_BAR_XSTRORM_INTMEM,4,2         ; @BAR_XSTRORM_INTMEM
	.comm	_RS_PERIODIC_TIMEOUT_USEC,4,2   ; @RS_PERIODIC_TIMEOUT_USEC
	.comm	_FUNC_MF_CFG_E1HOV_TAG_MASK,4,2 ; @FUNC_MF_CFG_E1HOV_TAG_MASK
	.comm	_FUNC_MF_CFG_E1HOV_TAG_SHIFT,4,2 ; @FUNC_MF_CFG_E1HOV_TAG_SHIFT
	.comm	_FUNC_MF_CFG_AFEX_VLAN_MASK,4,2 ; @FUNC_MF_CFG_AFEX_VLAN_MASK
	.comm	_FUNC_MF_CFG_AFEX_VLAN_SHIFT,4,2 ; @FUNC_MF_CFG_AFEX_VLAN_SHIFT
	.comm	_FUNC_MF_CFG_TRANSMIT_PRIORITY_MASK,4,2 ; @FUNC_MF_CFG_TRANSMIT_PRIORITY_MASK
	.comm	_FUNC_MF_CFG_TRANSMIT_PRIORITY_SHIFT,4,2 ; @FUNC_MF_CFG_TRANSMIT_PRIORITY_SHIFT
	.comm	_VLAN_PRIO_SHIFT,4,2            ; @VLAN_PRIO_SHIFT
	.comm	_FUNC_MF_CFG_AFEX_VLAN_MODE_MASK,4,2 ; @FUNC_MF_CFG_AFEX_VLAN_MODE_MASK
	.comm	_FUNC_MF_CFG_AFEX_VLAN_MODE_SHIFT,4,2 ; @FUNC_MF_CFG_AFEX_VLAN_MODE_SHIFT
	.comm	_FUNC_MF_CFG_AFEX_COS_FILTER_MASK,4,2 ; @FUNC_MF_CFG_AFEX_COS_FILTER_MASK
	.comm	_FUNC_MF_CFG_AFEX_COS_FILTER_SHIFT,4,2 ; @FUNC_MF_CFG_AFEX_COS_FILTER_SHIFT
	.no_dead_strip	_bnx2x_handle_afex_cmd
.subsections_via_symbols
