	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at803x_read_status
_at803x_read_status:                    ## @at803x_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, %r14
	movl	(%rdi), %r12d
	callq	_genphy_update_link
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r14), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	jne	LBB0_20
LBB0_4:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	movq	%r14, %rdi
	callq	_genphy_read_lpa
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_AT803X_SPECIFIC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_20
## %bb.7:
	movq	_AT803X_SS_SPEED_DUPLEX_RESOLVED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_17
## %bb.8:
	movq	_AT803X_SS_SPEED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_10
## %bb.9:
	cltq
	leaq	l_switch.table.at803x_read_status(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
LBB0_10:
	movq	_AT803X_SS_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	jne	LBB0_11
## %bb.12:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_11:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_AT803X_SS_MDIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	jne	LBB0_14
## %bb.15:
	movq	_ETH_TP_MDI@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_ETH_TP_MDI_X@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
LBB0_17:
	movq	8(%r14), %rax
	xorl	%ebx, %ebx
	cmpq	(%r15), %rax
	jne	LBB0_20
## %bb.18:
	cmpq	$0, 16(%r14)
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_phy_resolve_aneg_pause
	jmp	LBB0_20
	.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	_AT803X_SPECIFIC_STATUS,4,2     ## @AT803X_SPECIFIC_STATUS
	.comm	_AT803X_SS_SPEED_DUPLEX_RESOLVED,4,2 ## @AT803X_SS_SPEED_DUPLEX_RESOLVED
	.comm	_AT803X_SS_SPEED_MASK,4,2       ## @AT803X_SS_SPEED_MASK
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_AT803X_SS_DUPLEX,4,2           ## @AT803X_SS_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_AT803X_SS_MDIX,4,2             ## @AT803X_SS_MDIX
	.comm	_ETH_TP_MDI_X,4,2               ## @ETH_TP_MDI_X
	.comm	_ETH_TP_MDI,4,2                 ## @ETH_TP_MDI
	.no_dead_strip	_at803x_read_status
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.at803x_read_status
l_switch.table.at803x_read_status:
	.quad	_SPEED_1000
	.quad	_SPEED_100
	.quad	_SPEED_10

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at803x_read_status
_at803x_read_status:                    ; @at803x_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_13
; %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_12
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	w9, w8, [x19, #28]
	stp	xzr, xzr, [x19, #40]
	mov	x0, x19
	bl	_genphy_read_lpa
	tbnz	w0, #31, LBB0_13
; %bb.4:
Lloh8:
	adrp	x8, _AT803X_SPECIFIC_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AT803X_SPECIFIC_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_13
; %bb.5:
Lloh11:
	adrp	x8, _AT803X_SS_SPEED_DUPLEX_RESOLVED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AT803X_SS_SPEED_DUPLEX_RESOLVED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.6:
Lloh14:
	adrp	x8, _AT803X_SS_SPEED_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AT803X_SS_SPEED_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_8
; %bb.7:
Lloh17:
	adrp	x9, l_switch.table.at803x_read_status@PAGE
Lloh18:
	add	x9, x9, l_switch.table.at803x_read_status@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x19, #32]
LBB0_8:
Lloh19:
	adrp	x8, _AT803X_SS_DUPLEX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AT803X_SS_DUPLEX@GOTPAGEOFF]
Lloh21:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh25:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh26:
	adrp	x8, _AT803X_SS_MDIX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AT803X_SS_MDIX@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _ETH_TP_MDI@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ETH_TP_MDI@GOTPAGEOFF]
Lloh31:
	adrp	x10, _ETH_TP_MDI_X@GOTPAGE
Lloh32:
	ldr	x10, [x10, _ETH_TP_MDI_X@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_phy_resolve_aneg_pause
LBB0_12:
	mov	w0, #0
LBB0_13:
	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	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.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	_AT803X_SPECIFIC_STATUS,4,2     ; @AT803X_SPECIFIC_STATUS
	.comm	_AT803X_SS_SPEED_DUPLEX_RESOLVED,4,2 ; @AT803X_SS_SPEED_DUPLEX_RESOLVED
	.comm	_AT803X_SS_SPEED_MASK,4,2       ; @AT803X_SS_SPEED_MASK
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_AT803X_SS_DUPLEX,4,2           ; @AT803X_SS_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_AT803X_SS_MDIX,4,2             ; @AT803X_SS_MDIX
	.comm	_ETH_TP_MDI_X,4,2               ; @ETH_TP_MDI_X
	.comm	_ETH_TP_MDI,4,2                 ; @ETH_TP_MDI
	.no_dead_strip	_at803x_read_status
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.at803x_read_status
l_switch.table.at803x_read_status:
	.quad	_SPEED_1000
	.quad	_SPEED_100
	.quad	_SPEED_10

.subsections_via_symbols
