	.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, %rbx
	movq	_ETHTOOL_LINK_MODE_FIBRE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_linkmode_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	(%rbx), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_8:
	movq	_MII_MARVELL_COPPER_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_marvell_read_status_page       ## TAILCALL
LBB0_2:
	movq	_MII_MARVELL_FIBER_PAGE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_marvell_set_page
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_marvell_read_status_page
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
## %bb.5:
	movq	_MII_MARVELL_COPPER_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_marvell_set_page
	testl	%eax, %eax
	jns	LBB0_8
LBB0_6:
	movl	%eax, %r14d
	movq	_MII_MARVELL_COPPER_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_marvell_set_page
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_LINK_MODE_FIBRE_BIT,4,2 ## @ETHTOOL_LINK_MODE_FIBRE_BIT
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_MII_MARVELL_FIBER_PAGE,4,2     ## @MII_MARVELL_FIBER_PAGE
	.comm	_MII_MARVELL_COPPER_PAGE,4,2    ## @MII_MARVELL_COPPER_PAGE
	.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
Lloh0:
	adrp	x8, _ETHTOOL_LINK_MODE_FIBRE_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_FIBRE_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_linkmode_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _MII_MARVELL_COPPER_PAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_MARVELL_COPPER_PAGE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_marvell_read_status_page
LBB0_3:
Lloh9:
	adrp	x21, _MII_MARVELL_FIBER_PAGE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MII_MARVELL_FIBER_PAGE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_marvell_set_page
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_marvell_read_status_page
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	w20, #0
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _MII_MARVELL_COPPER_PAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MII_MARVELL_COPPER_PAGE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_marvell_set_page
	tbz	w0, #31, LBB0_2
LBB0_8:
	mov	x20, x0
Lloh14:
	adrp	x8, _MII_MARVELL_COPPER_PAGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MII_MARVELL_COPPER_PAGE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_marvell_set_page
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_LINK_MODE_FIBRE_BIT,4,2 ; @ETHTOOL_LINK_MODE_FIBRE_BIT
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_MII_MARVELL_FIBER_PAGE,4,2     ; @MII_MARVELL_FIBER_PAGE
	.comm	_MII_MARVELL_COPPER_PAGE,4,2    ; @MII_MARVELL_COPPER_PAGE
	.no_dead_strip	_marvell_read_status
.subsections_via_symbols
