	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_set_mac
_fm10k_set_mac:                         ## @fm10k_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_fm10k_mbx_lock
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_fm10k_uc_sync
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%r15, %rdi
	callq	_fm10k_mbx_unlock
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_fm10k_uc_unsync
	movq	%r15, %rdi
	callq	_fm10k_mbx_unlock
LBB0_6:
	movl	8(%rbx), %edi
	movl	(%r14), %esi
	callq	_ether_addr_copy
	movl	(%r15), %edi
	movl	(%r14), %esi
	callq	_ether_addr_copy
	movq	_NET_ADDR_RANDOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_NET_ADDR_RANDOM,4,2            ## @NET_ADDR_RANDOM
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_fm10k_set_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_set_mac
_fm10k_set_mac:                         ; @fm10k_set_mac
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x20]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_fm10k_mbx_lock
	ldr	w1, [x20]
	mov	x0, x19
	bl	_fm10k_uc_sync
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_fm10k_mbx_unlock
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_fm10k_uc_unsync
	mov	x0, x21
	bl	_fm10k_mbx_unlock
LBB0_7:
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	bl	_ether_addr_copy
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_ether_addr_copy
	mov	w0, #0
Lloh7:
	adrp	x8, _NET_ADDR_RANDOM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NET_ADDR_RANDOM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_NET_ADDR_RANDOM,4,2            ; @NET_ADDR_RANDOM
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_fm10k_set_mac
.subsections_via_symbols
