	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genphy_read_status             ## -- Begin function genphy_read_status
	.p2align	4, 0x90
_genphy_read_status:                    ## @genphy_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	%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, %rbx
	movl	(%rdi), %r12d
	callq	_genphy_update_link
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	xorl	%r14d, %r14d
	cmpl	$0, (%rbx)
	jne	LBB0_1
LBB0_5:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_genphy_read_lpa
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_9
## %bb.7:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_phy_resolve_aneg_linkmode
	xorl	%r14d, %r14d
	jmp	LBB0_1
LBB0_9:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.10:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_14
## %bb.11:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_15
## %bb.12:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_14:
	movl	%eax, %r14d
	jmp	LBB0_1
LBB0_15:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
LBB0_16:
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.17:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_18:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_10,4,2                   ## @SPEED_10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genphy_read_status             ; -- Begin function genphy_read_status
	.p2align	2
_genphy_read_status:                    ; @genphy_read_status
	.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	x19, x0
	ldr	w21, [x0]
	bl	_genphy_update_link
	cbnz	w0, LBB0_12
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x20, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AUTONEG_ENABLE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	ccmp	w21, #0, #4, eq
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	cbnz	w8, LBB0_11
LBB0_3:
Lloh2:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh4:
	adrp	x9, _DUPLEX_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #16]
	stp	xzr, xzr, [x19, #32]
	mov	x0, x19
	bl	_genphy_read_lpa
	tbnz	w0, #31, LBB0_12
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_phy_resolve_aneg_linkmode
	mov	w0, #0
	b	LBB0_12
LBB0_7:
Lloh8:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
Lloh11:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_12
; %bb.9:
Lloh14:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh19:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh20:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh21:
	adrp	x8, _BMCR_SPEED1000@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.10:
	mov	w0, #0
Lloh24:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	mov	w0, #0
LBB0_12:
	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_13:
Lloh26:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_15
; %bb.14:
	mov	w0, #0
Lloh29:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	mov	w0, #0
Lloh31:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_10,4,2                   ; @SPEED_10
.subsections_via_symbols
