	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcs7830_init_dev
_mcs7830_init_dev:                      ## @mcs7830_init_dev
	.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	%rdi, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_mcs7830_get_address
	movl	%eax, %r12d
	cmpl	$3, %ebx
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	testl	%r12d, %r12d
	jne	LBB0_2
LBB0_4:
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_9
LBB0_6:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mcs7830_set_autoneg
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movl	%r15d, %r12d
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_mcs7830_rev_C_fixup
LBB0_9:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot read MAC address\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot set autoneg\n"

	.no_dead_strip	_mcs7830_init_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcs7830_init_dev
_mcs7830_init_dev:                      ; @mcs7830_init_dev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_mcs7830_get_address
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_mcs7830_get_address
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_mcs7830_get_address
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_mcs7830_get_address
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_mcs7830_get_address
	mov	x20, x0
	cmp	w0, #0
	cset	w8, ne
	cbnz	w8, LBB0_9
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_mcs7830_set_autoneg
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.7:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	b	LBB0_11
LBB0_8:
	mov	x20, x0
	cbz	w8, LBB0_6
LBB0_9:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_mcs7830_rev_C_fixup
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot read MAC address\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot set autoneg\n"

	.no_dead_strip	_mcs7830_init_dev
.subsections_via_symbols
