	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_set_mac_address
_fec_set_mac_address:                   ## @fec_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%r12), %rdi
	movl	(%rbx), %esi
	movl	8(%r12), %edx
	callq	_memcpy
LBB0_4:
	movq	%r12, %rdi
	callq	_netif_running
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movl	8(%rax), %ecx
	shll	$8, %ecx
	orl	12(%rax), %ecx
	movl	(%rax), %edi
	movl	4(%rax), %eax
	shll	$16, %eax
	shll	$24, %edi
	orl	%eax, %edi
	orl	%ecx, %edi
	movq	_FEC_ADDR_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	(%r12), %rax
	movl	16(%rax), %edi
	movl	20(%rax), %eax
	shll	$16, %eax
	shll	$24, %edi
	orl	%eax, %edi
	movq	_FEC_ADDR_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	jmp	LBB0_6
LBB0_2:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_FEC_ADDR_LOW,8,3               ## @FEC_ADDR_LOW
	.comm	_FEC_ADDR_HIGH,8,3              ## @FEC_ADDR_HIGH
	.no_dead_strip	_fec_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 fec_set_mac_address
_fec_set_mac_address:                   ; @fec_set_mac_address
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	cbz	x21, LBB0_3
; %bb.1:
	ldr	w0, [x21]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x0, [x19]
	ldr	w1, [x21]
	ldr	w2, [x19, #8]
	bl	_memcpy
LBB0_3:
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x19]
	ldp	w10, w9, [x8, #8]
	orr	w9, w9, w10, lsl #8
	ldp	w8, w10, [x8]
	orr	w9, w9, w10, lsl #16
	orr	w0, w9, w8, lsl #24
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FEC_ADDR_LOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FEC_ADDR_LOW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	ldp	w8, w9, [x8, #16]
	lsl	w8, w8, #24
	orr	w0, w8, w9, lsl #16
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _FEC_ADDR_HIGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FEC_ADDR_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_FEC_ADDR_LOW,8,3               ; @FEC_ADDR_LOW
	.comm	_FEC_ADDR_HIGH,8,3              ; @FEC_ADDR_HIGH
	.no_dead_strip	_fec_set_mac_address
.subsections_via_symbols
