	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lxt973a2_update_link
_lxt973a2_update_link:                  ## @lxt973a2_update_link
	.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	_MII_BMSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	$-8, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	%r12d, %eax
	je	LBB0_4
LBB0_7:
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movl	%r12d, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMSR_LSTATUS,4,2               ## @BMSR_LSTATUS
	.no_dead_strip	_lxt973a2_update_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lxt973a2_update_link
_lxt973a2_update_link:                  ; @lxt973a2_update_link
	.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
Lloh0:
	adrp	x21, _MII_BMSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MII_BMSR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_phy_read
	tbnz	w0, #31, LBB0_9
; %bb.1:
Lloh2:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	w22, #-8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	cmp	w0, w20
	b.eq	LBB0_3
LBB0_6:
	tbnz	w0, #31, LBB0_9
; %bb.7:
Lloh5:
	adrp	x8, _BMSR_LSTATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w0, #0
	cset	w8, ne
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	mov	x0, x20
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMSR_LSTATUS,4,2               ; @BMSR_LSTATUS
	.no_dead_strip	_lxt973a2_update_link
.subsections_via_symbols
