	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_get_mac
_fec_get_mac:                           ## @fec_get_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %rdi
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_macaddr@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_of_get_mac_address
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	cmoveq	%r13, %r12
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
LBB0_3:
	movq	%r12, %rdi
	callq	_is_valid_ether_addr
	testq	%rbx, %rbx
	cmoveq	%r12, %rbx
	testl	%eax, %eax
	cmovneq	%r12, %rbx
	movq	%rbx, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_FEC_ADDR_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_readl
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movq	_FEC_ADDR_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_readl
	sarl	$16, %eax
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, 4(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	(%r14), %rdi
	movl	(%r13), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	movq	_macaddr@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_9
## %bb.8:
	movslq	(%r13), %rax
	movb	(%r15), %cl
	addb	-1(%rbx,%rax), %cl
	movq	(%r14), %rdx
	movb	%cl, -1(%rdx,%rax)
	jmp	LBB0_9
LBB0_6:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_eth_hw_addr_random
	movq	8(%r15), %rdi
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_macaddr,8,3                    ## @macaddr
	.comm	_FEC_ADDR_LOW,8,3               ## @FEC_ADDR_LOW
	.comm	_FEC_ADDR_HIGH,8,3              ## @FEC_ADDR_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid MAC address: %pM\n"

L_.str.1:                               ## @.str.1
	.asciz	"Using random MAC address: %pM\n"

	.comm	_FEC_FLASHMAC,8,3               ## @FEC_FLASHMAC
	.no_dead_strip	_fec_get_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_get_mac
_fec_get_mac:                           ; @fec_get_mac
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_netdev_priv
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_dev_get_platdata
	mov	x21, x0
Lloh3:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x26, x9, x8
	mov	sp, x26
Lloh7:
	adrp	x25, _macaddr@GOTPAGE
Lloh8:
	ldr	x25, [x25, _macaddr@GOTPAGEOFF]
	ldr	x22, [x25]
	mov	x0, x22
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_of_get_mac_address
	mov	x23, x0
	bl	_IS_ERR
	cmp	w0, #0
	csel	x22, x23, x22, eq
LBB0_3:
	mov	x0, x22
	bl	_is_valid_ether_addr
	cmp	x21, #0
	ccmp	w0, #0, #0, ne
	csel	x21, x21, x22, eq
	mov	x0, x21
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x20, #16]
Lloh9:
	adrp	x9, _FEC_ADDR_LOW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FEC_ADDR_LOW@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	bl	_cpu_to_be32
	str	w0, [x26]
	ldr	x8, [x20, #16]
Lloh12:
	adrp	x9, _FEC_ADDR_HIGH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FEC_ADDR_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	asr	w0, w0, #16
	bl	_cpu_to_be16
	str	w0, [x26, #4]
	mov	x21, x26
LBB0_5:
	mov	x0, x21
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x0, [x19]
	ldr	w2, [x24]
	mov	x1, x21
	bl	_memcpy
	ldr	x8, [x25]
	cmp	x21, x8
	b.ne	LBB0_9
; %bb.7:
	ldrsw	x8, [x24]
	sub	x8, x8, #1
	ldrb	w9, [x21, x8]
	ldrb	w10, [x20]
	add	w9, w10, w9
	ldr	x10, [x19]
	strb	w9, [x10, x8]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x20, #8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	mov	x0, x19
	bl	_eth_hw_addr_random
	ldr	x0, [x20, #8]
	ldr	x2, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_macaddr,8,3                    ; @macaddr
	.comm	_FEC_ADDR_LOW,8,3               ; @FEC_ADDR_LOW
	.comm	_FEC_ADDR_HIGH,8,3              ; @FEC_ADDR_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid MAC address: %pM\n"

l_.str.1:                               ; @.str.1
	.asciz	"Using random MAC address: %pM\n"

	.comm	_FEC_FLASHMAC,8,3               ; @FEC_FLASHMAC
	.no_dead_strip	_fec_get_mac
.subsections_via_symbols
