	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8851_init_mac
_ks8851_init_mac:                       ## @ks8851_init_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	%rdi, %r15
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_of_get_mac_address
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_CCR_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_ks8851_read_mac_addr
	movl	(%r14), %edi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_ether_addr_copy
	jmp	LBB0_6
LBB0_4:
	movq	8(%r15), %rdi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_5:
	movq	%r14, %rdi
	callq	_eth_hw_addr_random
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ks8851_write_mac_addr          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CCR_EEPROM,4,2                 ## @CCR_EEPROM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid mac address read %pM\n"

	.no_dead_strip	_ks8851_init_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8851_init_mac
_ks8851_init_mac:                       ; @ks8851_init_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, x0
	ldp	x19, x8, [x0, #8]
	ldr	w0, [x8]
	bl	_of_get_mac_address
	mov	x21, x0
	bl	_IS_ERR
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _CCR_EEPROM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CCR_EEPROM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_ks8851_read_mac_addr
	ldr	w0, [x19]
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_5
; %bb.3:
	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
LBB0_4:
	ldr	w0, [x19]
	mov	x1, x21
	bl	_ether_addr_copy
	b	LBB0_7
LBB0_5:
	ldr	x0, [x20, #8]
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_6:
	mov	x0, x19
	bl	_eth_hw_addr_random
LBB0_7:
	mov	x0, x19
	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
	b	_ks8851_write_mac_addr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CCR_EEPROM,4,2                 ; @CCR_EEPROM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid mac address read %pM\n"

	.no_dead_strip	_ks8851_init_mac
.subsections_via_symbols
