	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lxt973a2_read_status
_lxt973a2_read_status:                  ## @lxt973a2_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_lxt973a2_update_link
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_24:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_14
## %bb.2:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_24
## %bb.3:
	movl	$-1, %ebx
	movq	_MII_LPA@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r15d, %r13d
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jne	LBB0_4
LBB0_8:
	movl	24(%r14), %edi
	movl	%r13d, %esi
	callq	_mii_lpa_to_linkmode_lpa_t
	andl	%r15d, %r13d
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	$0, 16(%r14)
	movq	_LPA_100FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_LPA_100HALF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	testl	%r13d, %edx
	je	LBB0_10
## %bb.9:
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 32(%r14)
	testl	%r13d, %ecx
	je	LBB0_12
LBB0_11:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_12:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.13:
	movq	_LPA_PAUSE_CAP@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r13d, %eax
	setne	%cl
	movl	%ecx, 16(%r14)
	movq	_LPA_PAUSE_ASYM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %r13d
	setne	%cl
	movl	%ecx, 20(%r14)
	jmp	LBB0_24
LBB0_14:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_24
## %bb.15:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	jne	LBB0_16
## %bb.17:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_5:
	movl	%r13d, %r15d
	jmp	LBB0_24
LBB0_16:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	jne	LBB0_19
## %bb.20:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_23
LBB0_19:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_23
LBB0_22:
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
LBB0_23:
	movq	(%rcx), %rax
	movq	%rax, 32(%r14)
	movq	$0, 16(%r14)
	movl	24(%r14), %edi
	callq	_linkmode_zero
	xorl	%r15d, %r15d
	jmp	LBB0_24
LBB0_10:
	movq	_LPA_10FULL@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_LPA_100FULL,4,2                ## @LPA_100FULL
	.comm	_LPA_100HALF,4,2                ## @LPA_100HALF
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_LPA_10FULL,4,2                 ## @LPA_10FULL
	.comm	_LPA_PAUSE_CAP,4,2              ## @LPA_PAUSE_CAP
	.comm	_LPA_PAUSE_ASYM,4,2             ## @LPA_PAUSE_ASYM
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.no_dead_strip	_lxt973a2_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lxt973a2_read_status
_lxt973a2_read_status:                  ; @lxt973a2_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
	bl	_lxt973a2_update_link
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	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_2:
Lloh0:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.3:
Lloh3:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_15
; %bb.4:
Lloh6:
	adrp	x22, _MII_LPA@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MII_LPA@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_1
; %bb.5:
	cmp	w20, w21
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_1
LBB0_7:
	ldr	w0, [x19, #24]
	mov	x1, x20
	bl	_mii_lpa_to_linkmode_lpa_t
	and	w8, w20, w21
Lloh8:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	x9, [x19, #32]
Lloh11:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	stp	x9, xzr, [x19, #8]
Lloh14:
	adrp	x10, _LPA_100FULL@GOTPAGE
Lloh15:
	ldr	x10, [x10, _LPA_100FULL@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _LPA_100HALF@GOTPAGE
Lloh18:
	ldr	x11, [x11, _LPA_100HALF@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	orr	w11, w11, w10
	tst	w11, w8
	b.eq	LBB0_16
; %bb.8:
Lloh20:
	adrp	x11, _SPEED_100@GOTPAGE
Lloh21:
	ldr	x11, [x11, _SPEED_100@GOTPAGEOFF]
Lloh22:
	ldr	x11, [x11]
	str	x11, [x19, #32]
	tst	w10, w8
	b.eq	LBB0_10
LBB0_9:
Lloh23:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	str	x9, [x19, #8]
LBB0_10:
Lloh26:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh27:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.11:
	mov	w20, #0
Lloh29:
	adrp	x9, _LPA_PAUSE_CAP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _LPA_PAUSE_CAP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
Lloh32:
	adrp	x9, _LPA_PAUSE_ASYM@GOTPAGE
Lloh33:
	ldr	x9, [x9, _LPA_PAUSE_ASYM@GOTPAGEOFF]
	cset	w10, ne
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	stp	w10, w8, [x19, #16]
	b	LBB0_1
LBB0_12:
Lloh35:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_1
; %bb.13:
Lloh38:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh42:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh43:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh44:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh45:
	adrp	x8, _BMCR_SPEED1000@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh47:
	adrp	x9, _BMCR_SPEED100@GOTPAGE
Lloh48:
	ldr	x9, [x9, _BMCR_SPEED100@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	ldr	w9, [x9]
Lloh51:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh52:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
Lloh53:
	adrp	x11, _SPEED_100@GOTPAGE
Lloh54:
	ldr	x11, [x11, _SPEED_100@GOTPAGEOFF]
	tst	w9, w20
	csel	x9, x10, x11, eq
	ldr	x9, [x9]
Lloh55:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh56:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh57:
	ldr	x10, [x10]
	tst	w8, w20
	csel	x8, x9, x10, eq
	str	x8, [x19, #32]
	str	xzr, [x19, #16]
	ldr	w0, [x19, #24]
	bl	_linkmode_zero
LBB0_14:
	mov	w20, #0
	b	LBB0_1
LBB0_15:
	mov	x20, x21
	b	LBB0_1
LBB0_16:
Lloh58:
	adrp	x10, _LPA_10FULL@GOTPAGE
Lloh59:
	ldr	x10, [x10, _LPA_10FULL@GOTPAGEOFF]
Lloh60:
	ldr	w10, [x10]
	tst	w10, w8
	b.ne	LBB0_9
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_LPA_100FULL,4,2                ; @LPA_100FULL
	.comm	_LPA_100HALF,4,2                ; @LPA_100HALF
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_LPA_10FULL,4,2                 ; @LPA_10FULL
	.comm	_LPA_PAUSE_CAP,4,2              ; @LPA_PAUSE_CAP
	.comm	_LPA_PAUSE_ASYM,4,2             ; @LPA_PAUSE_ASYM
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.no_dead_strip	_lxt973a2_read_status
.subsections_via_symbols
