	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_ov_update_mac          ## -- Begin function qed_mcp_ov_update_mac
	.p2align	4, 0x90
_qed_mcp_ov_update_mac:                 ## @qed_mcp_ov_update_mac
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_DRV_MSG_CODE_SET_VMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_DRV_MSG_CODE_VMAC_TYPE_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DRV_MSG_CODE_VMAC_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, -72(%rbp)
	movq	%r14, %rdi
	callq	_MCP_PF_ID
	orl	%eax, -72(%rbp)
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	shll	$24, %eax
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	8(%rbx), %eax
	shll	$8, %eax
	orl	%ecx, %eax
	orl	12(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	16(%rbx), %eax
	movl	20(%rbx), %ecx
	shll	$24, %eax
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	%ecx, -44(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$8, -56(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_qed_mcp_cmd_and_union
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_DP_ERR
LBB0_2:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%r15d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_MSG_CODE_SET_VMAC,4,2      ## @DRV_MSG_CODE_SET_VMAC
	.comm	_DRV_MSG_CODE_VMAC_TYPE_MAC,4,2 ## @DRV_MSG_CODE_VMAC_TYPE_MAC
	.comm	_DRV_MSG_CODE_VMAC_TYPE_SHIFT,4,2 ## @DRV_MSG_CODE_VMAC_TYPE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send mac address, rc = %d\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_ov_update_mac          ; -- Begin function qed_mcp_ov_update_mac
	.p2align	2
_qed_mcp_ov_update_mac:                 ; @qed_mcp_ov_update_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh3:
	adrp	x8, _DRV_MSG_CODE_SET_VMAC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRV_MSG_CODE_SET_VMAC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DRV_MSG_CODE_VMAC_TYPE_MAC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRV_MSG_CODE_VMAC_TYPE_MAC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _DRV_MSG_CODE_VMAC_TYPE_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DRV_MSG_CODE_VMAC_TYPE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	str	w8, [sp, #28]
	str	w9, [sp, #8]
	mov	x0, x20
	bl	_MCP_PF_ID
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
	ldp	w8, w9, [x19]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w9, w10, [x19, #8]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	ldp	w9, w10, [x19, #16]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	stp	w8, w9, [sp, #32]
	add	x8, sp, #32
	str	x8, [sp, #16]
	mov	w8, #8
	str	w8, [sp, #24]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_qed_mcp_cmd_and_union
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_DP_ERR
LBB0_2:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_memcpy
	ldr	x8, [sp, #40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_MSG_CODE_SET_VMAC,4,2      ; @DRV_MSG_CODE_SET_VMAC
	.comm	_DRV_MSG_CODE_VMAC_TYPE_MAC,4,2 ; @DRV_MSG_CODE_VMAC_TYPE_MAC
	.comm	_DRV_MSG_CODE_VMAC_TYPE_SHIFT,4,2 ; @DRV_MSG_CODE_VMAC_TYPE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send mac address, rc = %d\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
