	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_set_mac_addr              ## -- Begin function qede_set_mac_addr
	.p2align	4, 0x90
_qede_set_mac_addr:                     ## @qede_set_mac_addr
	.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	%rsi, %r12
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	___qede_lock
	movl	(%r12), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	16(%r15), %rax
	movl	8(%r15), %edi
	movl	(%r12), %esi
	callq	*16(%rax)
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	(%r15), %rax
	movq	_QEDE_STATE_OPEN@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.3:
	movq	_QED_FILTER_XCAST_TYPE_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_qede_set_ucast_rx_mac
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_4:
	movl	(%r14), %edi
	movl	(%r12), %esi
	callq	_ether_addr_copy
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_INFO
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.5:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movl	8(%r15), %edi
	movl	(%r14), %esi
	callq	*(%rax)
	movq	_QED_FILTER_XCAST_TYPE_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_qede_set_ucast_rx_mac
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	___qede_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_NETIF_MSG_IFDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	callq	_DP_VERBOSE
	movq	%r15, %rdi
	callq	_IS_VF
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	16(%r15), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.12:
	movl	8(%r15), %edi
	movl	(%r14), %esi
	callq	*%rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The MAC address is not valid\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"qed prevents setting MAC %pM\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QEDE_STATE_OPEN,8,3            ## @QEDE_STATE_OPEN
	.comm	_QED_FILTER_XCAST_TYPE_DEL,4,2  ## @QED_FILTER_XCAST_TYPE_DEL
L_.str.2:                               ## @.str.2
	.asciz	"Setting device MAC to %pM\n"

	.comm	_NETIF_MSG_IFDOWN,4,2           ## @NETIF_MSG_IFDOWN
L_.str.3:                               ## @.str.3
	.asciz	"The device is currently down\n"

	.comm	_QED_FILTER_XCAST_TYPE_ADD,4,2  ## @QED_FILTER_XCAST_TYPE_ADD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_set_mac_addr              ; -- Begin function qede_set_mac_addr
	.p2align	2
_qede_set_mac_addr:                     ; @qede_set_mac_addr
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	___qede_lock
	ldr	w0, [x21]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	blr	x8
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x23, _QEDE_STATE_OPEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QEDE_STATE_OPEN@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _QED_FILTER_XCAST_TYPE_DEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QED_FILTER_XCAST_TYPE_DEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_qede_set_ucast_rx_mac
	mov	x22, x0
	cbnz	w0, LBB0_9
LBB0_4:
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_ether_addr_copy
	ldr	w2, [x21]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	blr	x8
Lloh7:
	adrp	x8, _QED_FILTER_XCAST_TYPE_ADD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QED_FILTER_XCAST_TYPE_ADD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_qede_set_ucast_rx_mac
	mov	x22, x0
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh12:
	adrp	x8, _EFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x21]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x19
	bl	___qede_unlock
	mov	x0, x22
	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_10:
Lloh18:
	adrp	x8, _NETIF_MSG_IFDOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NETIF_MSG_IFDOWN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	mov	x0, x19
	bl	_IS_VF
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	blr	x8
LBB0_13:
	mov	w22, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The MAC address is not valid\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"qed prevents setting MAC %pM\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QEDE_STATE_OPEN,8,3            ; @QEDE_STATE_OPEN
	.comm	_QED_FILTER_XCAST_TYPE_DEL,4,2  ; @QED_FILTER_XCAST_TYPE_DEL
l_.str.2:                               ; @.str.2
	.asciz	"Setting device MAC to %pM\n"

	.comm	_NETIF_MSG_IFDOWN,4,2           ; @NETIF_MSG_IFDOWN
l_.str.3:                               ; @.str.3
	.asciz	"The device is currently down\n"

	.comm	_QED_FILTER_XCAST_TYPE_ADD,4,2  ; @QED_FILTER_XCAST_TYPE_ADD
.subsections_via_symbols
