	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_set_mac_address
_ice_set_mac_address:                   ## @ice_set_mac_address
	.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, %rbx
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	(%rax), %r12
	movq	8(%r12), %r15
	movq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_netdev_warn
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	___ICE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	callq	_ice_is_reset_in_progress
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r13), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ice_vsi_cfg_mac_fltr
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_ice_vsi_cfg_mac_fltr
	testl	%eax, %eax
	je	LBB0_13
LBB0_11:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	negl	%ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_8
LBB0_13:
	addq	$4, %r15
	movq	(%r13), %rdi
	movl	8(%r13), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movl	(%r12), %edi
	movq	(%r13), %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_netdev_dbg
	movq	_ICE_AQC_MAN_MAC_UPDATE_LAA_WOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_ice_aq_manage_mac_write
	testl	%eax, %eax
	je	LBB0_8
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"already using mac %pM\n"

	.comm	___ICE_DOWN,4,2                 ## @__ICE_DOWN
L_.str.1:                               ## @.str.1
	.asciz	"can't set mac %pM. device not ready\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"can't set MAC %pM. filter update failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"updated MAC address to %pM\n"

	.comm	_ICE_AQC_MAN_MAC_UPDATE_LAA_WOL,4,2 ## @ICE_AQC_MAN_MAC_UPDATE_LAA_WOL
L_.str.4:                               ## @.str.4
	.asciz	"can't set MAC %pM. write to firmware failed error %d\n"

	.no_dead_strip	_ice_set_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_set_mac_address
_ice_set_mac_address:                   ; @ice_set_mac_address
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x21, [x0]
	ldr	x22, [x21, #8]
	ldr	x19, [x19]
	mov	x0, x19
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_ether_addr_equal
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netdev_warn
LBB0_3:
	mov	w21, #0
	b	LBB0_9
LBB0_4:
Lloh2:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh4:
	adrp	x8, ___ICE_DOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, ___ICE_DOWN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_test_bit
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x22]
	bl	_ice_is_reset_in_progress
	cbz	x0, LBB0_10
LBB0_7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netdev_err
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	ldr	x1, [x20]
	mov	x0, x21
	mov	w2, #0
	bl	_ice_vsi_cfg_mac_fltr
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_ice_vsi_cfg_mac_fltr
	cbz	w0, LBB0_14
LBB0_12:
Lloh11:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.13:
	neg	w21, w8
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netdev_err
	b	LBB0_9
LBB0_14:
	add	x22, x22, #4
	ldr	x0, [x20]
	ldr	w2, [x20, #8]
	mov	x1, x19
	bl	_memcpy
	ldr	w0, [x21]
	ldr	x2, [x20]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_dbg
Lloh18:
	adrp	x8, _ICE_AQC_MAN_MAC_UPDATE_LAA_WOL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ICE_AQC_MAN_MAC_UPDATE_LAA_WOL@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x19
	mov	x3, #0
	bl	_ice_aq_manage_mac_write
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_3
; %bb.15:
	str	x0, [sp]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netdev_err
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"already using mac %pM\n"

	.comm	___ICE_DOWN,4,2                 ; @__ICE_DOWN
l_.str.1:                               ; @.str.1
	.asciz	"can't set mac %pM. device not ready\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"can't set MAC %pM. filter update failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"updated MAC address to %pM\n"

	.comm	_ICE_AQC_MAN_MAC_UPDATE_LAA_WOL,4,2 ; @ICE_AQC_MAN_MAC_UPDATE_LAA_WOL
l_.str.4:                               ; @.str.4
	.asciz	"can't set MAC %pM. write to firmware failed error %d\n"

	.no_dead_strip	_ice_set_mac_address
.subsections_via_symbols
