	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e1xxx_get_link_status
_mv88e1xxx_get_link_status:             ## @mv88e1xxx_get_link_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	_MV88E1XXX_SPECIFIC_STATUS_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_simple_mdio_read
	movl	-44(%rbp), %edi
	movq	_V_PSSR_STATUS_RESOLVED@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_V_PSSR_RX_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	je	LBB0_4
## %bb.3:
	movq	_PAUSE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movq	_V_PSSR_TX_PAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%edi, %ebx
	je	LBB0_6
## %bb.5:
	movq	_PAUSE_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_6:
	movq	_V_PSSR_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edi, %ecx
	jne	LBB0_7
## %bb.8:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	movl	$-1, %eax
	movl	$-1, %r14d
	testq	%r13, %r13
	jne	LBB0_16
	jmp	LBB0_17
LBB0_7:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
LBB0_9:
	orl	%eax, %ebx
	movl	(%rcx), %r14d
	callq	_G_PSSR_SPEED
	cmpl	$1, %eax
	je	LBB0_12
## %bb.10:
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	testq	%r13, %r13
	je	LBB0_17
LBB0_16:
	movq	_V_PSSR_LINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	-44(%rbp), %ecx
	setne	%dl
	movl	%edx, (%r13)
LBB0_17:
	testq	%r12, %r12
	je	LBB0_19
## %bb.18:
	movl	%eax, (%r12)
LBB0_19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	%r14d, (%rax)
LBB0_21:
	testq	%r15, %r15
	je	LBB0_23
## %bb.22:
	movl	%ebx, (%r15)
LBB0_23:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E1XXX_SPECIFIC_STATUS_REGISTER,4,2 ## @MV88E1XXX_SPECIFIC_STATUS_REGISTER
	.comm	_V_PSSR_STATUS_RESOLVED,4,2     ## @V_PSSR_STATUS_RESOLVED
	.comm	_V_PSSR_RX_PAUSE,4,2            ## @V_PSSR_RX_PAUSE
	.comm	_PAUSE_RX,4,2                   ## @PAUSE_RX
	.comm	_V_PSSR_TX_PAUSE,4,2            ## @V_PSSR_TX_PAUSE
	.comm	_PAUSE_TX,4,2                   ## @PAUSE_TX
	.comm	_V_PSSR_DUPLEX,4,2              ## @V_PSSR_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_V_PSSR_LINK,4,2                ## @V_PSSR_LINK
	.no_dead_strip	_mv88e1xxx_get_link_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e1xxx_get_link_status
_mv88e1xxx_get_link_status:             ; @mv88e1xxx_get_link_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _MV88E1XXX_SPECIFIC_STATUS_REGISTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV88E1XXX_SPECIFIC_STATUS_REGISTER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_simple_mdio_read
	ldr	w0, [sp, #12]
Lloh3:
	adrp	x8, _V_PSSR_STATUS_RESOLVED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V_PSSR_STATUS_RESOLVED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _V_PSSR_RX_PAUSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V_PSSR_RX_PAUSE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PAUSE_RX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PAUSE_RX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w0
Lloh12:
	adrp	x8, _V_PSSR_TX_PAUSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V_PSSR_TX_PAUSE@GOTPAGEOFF]
	csel	w9, wzr, w9, eq
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _PAUSE_TX@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PAUSE_TX@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w8, w0
	csel	w8, wzr, w10, eq
	orr	w23, w8, w9
Lloh18:
	adrp	x8, _V_PSSR_DUPLEX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V_PSSR_DUPLEX@GOTPAGEOFF]
Lloh20:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh24:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w24, [x8]
	bl	_G_PSSR_SPEED
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w0, LBB0_6
; %bb.3:
Lloh25:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	w23, #0
	mov	w8, #-1
	mov	w24, #-1
	cbnz	x22, LBB0_8
	b	LBB0_9
LBB0_5:
Lloh27:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh29:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	cbz	x22, LBB0_9
LBB0_8:
	ldr	w9, [sp, #12]
Lloh31:
	adrp	x10, _V_PSSR_LINK@GOTPAGE
Lloh32:
	ldr	x10, [x10, _V_PSSR_LINK@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w9, ne
	str	w9, [x22]
LBB0_9:
	cbz	x21, LBB0_11
; %bb.10:
	str	w8, [x21]
LBB0_11:
	cbz	x20, LBB0_13
; %bb.12:
	str	w24, [x20]
LBB0_13:
	cbz	x19, LBB0_15
; %bb.14:
	str	w23, [x19]
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E1XXX_SPECIFIC_STATUS_REGISTER,4,2 ; @MV88E1XXX_SPECIFIC_STATUS_REGISTER
	.comm	_V_PSSR_STATUS_RESOLVED,4,2     ; @V_PSSR_STATUS_RESOLVED
	.comm	_V_PSSR_RX_PAUSE,4,2            ; @V_PSSR_RX_PAUSE
	.comm	_PAUSE_RX,4,2                   ; @PAUSE_RX
	.comm	_V_PSSR_TX_PAUSE,4,2            ; @V_PSSR_TX_PAUSE
	.comm	_PAUSE_TX,4,2                   ; @PAUSE_TX
	.comm	_V_PSSR_DUPLEX,4,2              ; @V_PSSR_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_V_PSSR_LINK,4,2                ; @V_PSSR_LINK
	.no_dead_strip	_mv88e1xxx_get_link_status
.subsections_via_symbols
