	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9031_read_status
_ksz9031_read_status:                   ## @ksz9031_read_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_genphy_read_status
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	_MII_STAT1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpb	$-1, %cl
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_phy_init_hw
	movq	$0, 8(%rbx)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_phy_interrupt_is_valid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_genphy_config_aneg             ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_STAT1000,4,2               ## @MII_STAT1000
	.no_dead_strip	_ksz9031_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9031_read_status
_ksz9031_read_status:                   ; @ksz9031_read_status
	.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
	bl	_genphy_read_status
	cbnz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _MII_STAT1000@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_STAT1000@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mvn	w8, w0
	tst	w8, #0xff
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_phy_init_hw
	str	xzr, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_phy_interrupt_is_valid
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_genphy_config_aneg
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_STAT1000,4,2               ; @MII_STAT1000
	.no_dead_strip	_ksz9031_read_status
.subsections_via_symbols
