	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_mcp_update_stag
_qed_mcp_update_stag:                   ## @qed_mcp_update_stag
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	callq	_MCP_PF_ID
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_qed_mcp_get_shmem_func
	movq	_FUNC_MF_CFG_OV_STAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-32(%rbp), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	%eax, (%rbx)
	movq	_QED_MF_OVLAN_CLSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %ecx
	movq	_QED_MCP_VLAN_UNSET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_2
## %bb.3:
	movq	_NIG_REG_LLH_FUNC_TAG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_qed_wr
	movq	_NIG_REG_LLH_FUNC_TAG_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_qed_wr
	movq	_DORQ_REG_TAG1_OVRD_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_qed_wr
	movq	_DORQ_REG_PF_EXT_VID_BB_K2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_4
LBB0_2:
	movq	_NIG_REG_LLH_FUNC_TAG_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_wr
	movq	_NIG_REG_LLH_FUNC_TAG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_qed_wr
	movq	_DORQ_REG_TAG1_OVRD_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_qed_wr
	movq	_DORQ_REG_PF_EXT_VID_BB_K2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
LBB0_4:
	callq	_qed_wr
	movq	%rbx, %rdi
	callq	_qed_sp_pf_update_stag
LBB0_5:
	movq	_QED_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	4(%rbx), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_DP_VERBOSE
	movq	_DRV_MSG_CODE_S_TAG_UPDATE_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %r8
	leaq	-20(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_qed_mcp_cmd
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FUNC_MF_CFG_OV_STAG_MASK,4,2   ## @FUNC_MF_CFG_OV_STAG_MASK
	.comm	_QED_MF_OVLAN_CLSS,4,2          ## @QED_MF_OVLAN_CLSS
	.comm	_QED_MCP_VLAN_UNSET,4,2         ## @QED_MCP_VLAN_UNSET
	.comm	_NIG_REG_LLH_FUNC_TAG_VALUE,4,2 ## @NIG_REG_LLH_FUNC_TAG_VALUE
	.comm	_NIG_REG_LLH_FUNC_TAG_EN,4,2    ## @NIG_REG_LLH_FUNC_TAG_EN
	.comm	_DORQ_REG_TAG1_OVRD_MODE,4,2    ## @DORQ_REG_TAG1_OVRD_MODE
	.comm	_DORQ_REG_PF_EXT_VID_BB_K2,4,2  ## @DORQ_REG_PF_EXT_VID_BB_K2
	.comm	_QED_MSG_SP,4,2                 ## @QED_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ovlan = %d hw_mode = 0x%x\n"

	.comm	_DRV_MSG_CODE_S_TAG_UPDATE_ACK,4,2 ## @DRV_MSG_CODE_S_TAG_UPDATE_ACK
	.no_dead_strip	_qed_mcp_update_stag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_mcp_update_stag
_qed_mcp_update_stag:                   ; @qed_mcp_update_stag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp]
	bl	_MCP_PF_ID
	mov	x3, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_qed_mcp_get_shmem_func
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _FUNC_MF_CFG_OV_STAG_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FUNC_MF_CFG_OV_STAG_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	x9, [x20, #8]
	str	w8, [x9]
	str	w8, [x20]
Lloh3:
	adrp	x8, _QED_MF_OVLAN_CLSS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QED_MF_OVLAN_CLSS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x1, [x20, #16]
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w3, [x20]
Lloh6:
	adrp	x8, _QED_MCP_VLAN_UNSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QED_MCP_VLAN_UNSET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w3, w8
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _NIG_REG_LLH_FUNC_TAG_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NIG_REG_LLH_FUNC_TAG_EN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_qed_wr
Lloh12:
	adrp	x8, _NIG_REG_LLH_FUNC_TAG_VALUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NIG_REG_LLH_FUNC_TAG_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_qed_wr
Lloh15:
	adrp	x8, _DORQ_REG_TAG1_OVRD_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DORQ_REG_TAG1_OVRD_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_qed_wr
Lloh18:
	adrp	x8, _DORQ_REG_PF_EXT_VID_BB_K2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DORQ_REG_PF_EXT_VID_BB_K2@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	b	LBB0_4
LBB0_3:
Lloh21:
	adrp	x8, _NIG_REG_LLH_FUNC_TAG_VALUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NIG_REG_LLH_FUNC_TAG_VALUE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_qed_wr
Lloh24:
	adrp	x8, _NIG_REG_LLH_FUNC_TAG_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NIG_REG_LLH_FUNC_TAG_EN@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_qed_wr
Lloh27:
	adrp	x8, _DORQ_REG_TAG1_OVRD_MODE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DORQ_REG_TAG1_OVRD_MODE@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_qed_wr
Lloh30:
	adrp	x8, _DORQ_REG_PF_EXT_VID_BB_K2@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DORQ_REG_PF_EXT_VID_BB_K2@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	x0, x20
	mov	x1, x19
LBB0_4:
	bl	_qed_wr
	mov	x0, x20
	bl	_qed_sp_pf_update_stag
LBB0_5:
Lloh33:
	adrp	x8, _QED_MSG_SP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _QED_MSG_SP@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	ldr	w3, [x8]
	ldr	w4, [x20, #4]
Lloh36:
	adrp	x2, l_.str@PAGE
Lloh37:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
Lloh38:
	adrp	x8, _DRV_MSG_CODE_S_TAG_UPDATE_ACK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DRV_MSG_CODE_S_TAG_UPDATE_ACK@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	add	x4, sp, #4
	mov	x5, sp
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_qed_mcp_cmd
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_FUNC_MF_CFG_OV_STAG_MASK,4,2   ; @FUNC_MF_CFG_OV_STAG_MASK
	.comm	_QED_MF_OVLAN_CLSS,4,2          ; @QED_MF_OVLAN_CLSS
	.comm	_QED_MCP_VLAN_UNSET,4,2         ; @QED_MCP_VLAN_UNSET
	.comm	_NIG_REG_LLH_FUNC_TAG_VALUE,4,2 ; @NIG_REG_LLH_FUNC_TAG_VALUE
	.comm	_NIG_REG_LLH_FUNC_TAG_EN,4,2    ; @NIG_REG_LLH_FUNC_TAG_EN
	.comm	_DORQ_REG_TAG1_OVRD_MODE,4,2    ; @DORQ_REG_TAG1_OVRD_MODE
	.comm	_DORQ_REG_PF_EXT_VID_BB_K2,4,2  ; @DORQ_REG_PF_EXT_VID_BB_K2
	.comm	_QED_MSG_SP,4,2                 ; @QED_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ovlan = %d hw_mode = 0x%x\n"

	.comm	_DRV_MSG_CODE_S_TAG_UPDATE_ACK,4,2 ; @DRV_MSG_CODE_S_TAG_UPDATE_ACK
	.no_dead_strip	_qed_mcp_update_stag
.subsections_via_symbols
