	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_read_status
_marvell_read_status:                   ## @marvell_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_genphy_update_link
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_26:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.2:
	movq	_MII_M1011_PHY_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_26
## %bb.3:
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_MII_M1011_PHY_STATUS_FULLDUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	andl	%ebx, %esi
	jne	LBB0_9
## %bb.8:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rdx
LBB0_9:
	movq	(%rdx), %rdx
	movq	%rdx, 8(%r14)
	movq	_MII_M1011_PHY_STATUS_SPD_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%ebx, %esi
	movq	$0, 16(%r14)
	cmpl	$129, %esi
	jne	LBB0_10
## %bb.11:
	movq	_SPEED_100@GOTPCREL(%rip), %rdi
	jmp	LBB0_12
LBB0_16:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_26
## %bb.17:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	jne	LBB0_18
## %bb.19:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_20:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	jne	LBB0_21
## %bb.22:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_25
LBB0_21:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_25
LBB0_24:
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
LBB0_25:
	movq	(%rcx), %rax
	movq	%rax, 24(%r14)
	movq	$0, 16(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_4:
	movl	%r15d, %ebx
	jmp	LBB0_26
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_26
LBB0_10:
	movq	_SPEED_10@GOTPCREL(%rip), %rdi
LBB0_12:
	cmpl	$128, %esi
	jne	LBB0_14
## %bb.13:
	movq	_SPEED_1000@GOTPCREL(%rip), %rdi
LBB0_14:
	movq	(%rdi), %rsi
	movq	%rsi, 24(%r14)
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rdx
	jne	LBB0_26
## %bb.15:
	andl	%r15d, %eax
	movq	_LPA_PAUSE_CAP@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 16(%r14)
	movq	_LPA_PAUSE_ASYM@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 20(%r14)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_MII_M1011_PHY_STATUS,4,2       ## @MII_M1011_PHY_STATUS
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_MII_M1011_PHY_STATUS_FULLDUPLEX,4,2 ## @MII_M1011_PHY_STATUS_FULLDUPLEX
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_MII_M1011_PHY_STATUS_SPD_MASK,4,2 ## @MII_M1011_PHY_STATUS_SPD_MASK
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.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	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.no_dead_strip	_marvell_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_read_status
_marvell_read_status:                   ; @marvell_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	_genphy_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_8
; %bb.3:
Lloh3:
	adrp	x8, _MII_M1011_PHY_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_M1011_PHY_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_1
; %bb.4:
Lloh6:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.5:
Lloh9:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_11
; %bb.6:
Lloh12:
	adrp	x8, _MII_M1011_PHY_STATUS_FULLDUPLEX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_M1011_PHY_STATUS_FULLDUPLEX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	tst	w8, w20
	csel	x8, x9, x10, eq
	str	x8, [x19, #8]
Lloh21:
	adrp	x9, _MII_M1011_PHY_STATUS_SPD_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MII_M1011_PHY_STATUS_SPD_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w9, w9, w20
	str	xzr, [x19, #16]
Lloh24:
	adrp	x11, _SPEED_1000@GOTPAGE
Lloh25:
	ldr	x11, [x11, _SPEED_1000@GOTPAGEOFF]
Lloh26:
	adrp	x12, _SPEED_100@GOTPAGE
Lloh27:
	ldr	x12, [x12, _SPEED_100@GOTPAGEOFF]
Lloh28:
	adrp	x13, _SPEED_10@GOTPAGE
Lloh29:
	ldr	x13, [x13, _SPEED_10@GOTPAGEOFF]
	cmp	w9, #129
	csel	x12, x12, x13, eq
	cmp	w9, #128
	csel	x9, x11, x12, eq
	ldr	x9, [x9]
	str	x9, [x19, #24]
	mov	w20, #0
	cmp	x8, x10
	b.ne	LBB0_1
; %bb.7:
	mov	w20, #0
	and	w8, w0, w21
Lloh30:
	adrp	x9, _LPA_PAUSE_CAP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _LPA_PAUSE_CAP@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
Lloh33:
	adrp	x9, _LPA_PAUSE_ASYM@GOTPAGE
Lloh34:
	ldr	x9, [x9, _LPA_PAUSE_ASYM@GOTPAGEOFF]
	cset	w10, ne
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	stp	w10, w8, [x19, #16]
	b	LBB0_1
LBB0_8:
Lloh36:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_1
; %bb.9:
Lloh39:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh43:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh44:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh45:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh46:
	adrp	x8, _BMCR_SPEED1000@GOTPAGE
Lloh47:
	ldr	x8, [x8, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh48:
	adrp	x9, _BMCR_SPEED100@GOTPAGE
Lloh49:
	ldr	x9, [x9, _BMCR_SPEED100@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	ldr	w9, [x9]
Lloh52:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh53:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
Lloh54:
	adrp	x11, _SPEED_100@GOTPAGE
Lloh55:
	ldr	x11, [x11, _SPEED_100@GOTPAGEOFF]
	tst	w9, w20
	csel	x9, x10, x11, eq
	ldr	x9, [x9]
Lloh56:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh57:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh58:
	ldr	x10, [x10]
	tst	w8, w20
	csel	x8, x9, x10, eq
	stp	xzr, x8, [x19, #16]
	mov	w20, #0
	b	LBB0_1
LBB0_10:
	mov	x20, x21
	b	LBB0_1
LBB0_11:
	mov	x20, x0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh50
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_MII_M1011_PHY_STATUS,4,2       ; @MII_M1011_PHY_STATUS
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_MII_M1011_PHY_STATUS_FULLDUPLEX,4,2 ; @MII_M1011_PHY_STATUS_FULLDUPLEX
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_MII_M1011_PHY_STATUS_SPD_MASK,4,2 ; @MII_M1011_PHY_STATUS_SPD_MASK
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.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	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.no_dead_strip	_marvell_read_status
.subsections_via_symbols
