	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_set_mac
_i40e_set_mac:                          ## @i40e_set_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	%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, %r15
	callq	_netdev_priv
	movq	(%rax), %r13
	movq	16(%r13), %r14
	movl	(%r12), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_ether_addr_equal
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_10
LBB0_4:
	movq	___I40E_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:
	movq	___I40E_RESET_RECOVERY_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	8(%r14), %rbx
	movl	8(%r14), %edi
	movl	(%r12), %esi
	callq	_ether_addr_equal
	testq	%rax, %rax
	cmoveq	%r12, %rbx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	(%rbx), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	leaq	8(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_i40e_del_mac_filter
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_ether_addr_copy
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_i40e_add_mac_filter
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	movq	(%r13), %rax
	movq	_I40E_VSI_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	leaq	4(%r14), %r13
	movq	_I40E_AQC_WRITE_TYPE_LAA_WOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_i40e_aq_mac_address_write
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_i40e_stat_str
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	%r13, %rdi
	callq	_i40e_aq_str
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_9:
	movq	%r14, %rdi
	callq	_i40e_service_event_schedule
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"already using mac address %pM\n"

	.comm	___I40E_DOWN,4,2                ## @__I40E_DOWN
	.comm	___I40E_RESET_RECOVERY_PENDING,4,2 ## @__I40E_RESET_RECOVERY_PENDING
L_.str.1:                               ## @.str.1
	.asciz	"returning to hw mac address %pM\n"

L_.str.2:                               ## @.str.2
	.asciz	"set new mac address %pM\n"

	.comm	_I40E_VSI_MAIN,8,3              ## @I40E_VSI_MAIN
	.comm	_I40E_AQC_WRITE_TYPE_LAA_WOL,4,2 ## @I40E_AQC_WRITE_TYPE_LAA_WOL
L_.str.3:                               ## @.str.3
	.asciz	"Ignoring error from firmware on LAA update, status %s, AQ ret %s\n"

	.no_dead_strip	_i40e_set_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_set_mac
_i40e_set_mac:                          ; @i40e_set_mac
	.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	x19, x0
	bl	_netdev_priv
	ldr	x22, [x0]
	ldr	x20, [x22, #16]
	ldr	w0, [x21]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_ether_addr_equal
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, ___I40E_DOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___I40E_DOWN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, ___I40E_RESET_RECOVERY_PENDING@GOTPAGE
Lloh6:
	ldr	x8, [x8, ___I40E_RESET_RECOVERY_PENDING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cbz	x0, LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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_8:
	mov	x23, x20
	ldr	w0, [x23, #8]!
	ldr	w1, [x21]
	bl	_ether_addr_equal
	cmp	x0, #0
	csel	x8, x21, x23, eq
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh13:
	adrp	x10, l_.str.2@PAGE
Lloh14:
	add	x10, x10, l_.str.2@PAGEOFF
	csel	x1, x10, x9, eq
	ldr	w2, [x8]
	mov	x0, x19
	bl	_netdev_info
	add	x23, x22, #8
	mov	x0, x23
	bl	_spin_lock_bh
	ldr	w1, [x19]
	mov	x0, x22
	bl	_i40e_del_mac_filter
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_ether_addr_copy
	ldr	w1, [x19]
	mov	x0, x22
	bl	_i40e_add_mac_filter
	mov	x0, x23
	bl	_spin_unlock_bh
	ldr	x8, [x22]
Lloh15:
	adrp	x9, _I40E_VSI_MAIN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _I40E_VSI_MAIN@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	add	x22, x20, #4
Lloh18:
	adrp	x8, _I40E_AQC_WRITE_TYPE_LAA_WOL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40E_AQC_WRITE_TYPE_LAA_WOL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x22
	mov	x3, #0
	bl	_i40e_aq_mac_address_write
	cbz	x0, LBB0_11
; %bb.10:
	mov	x1, x0
	mov	x0, x22
	bl	_i40e_stat_str
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x22
	bl	_i40e_aq_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_info
LBB0_11:
	mov	x0, x20
	bl	_i40e_service_event_schedule
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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 address %pM\n"

	.comm	___I40E_DOWN,4,2                ; @__I40E_DOWN
	.comm	___I40E_RESET_RECOVERY_PENDING,4,2 ; @__I40E_RESET_RECOVERY_PENDING
l_.str.1:                               ; @.str.1
	.asciz	"returning to hw mac address %pM\n"

l_.str.2:                               ; @.str.2
	.asciz	"set new mac address %pM\n"

	.comm	_I40E_VSI_MAIN,8,3              ; @I40E_VSI_MAIN
	.comm	_I40E_AQC_WRITE_TYPE_LAA_WOL,4,2 ; @I40E_AQC_WRITE_TYPE_LAA_WOL
l_.str.3:                               ; @.str.3
	.asciz	"Ignoring error from firmware on LAA update, status %s, AQ ret %s\n"

	.no_dead_strip	_i40e_set_mac
.subsections_via_symbols
