	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getlinkstatus
_getlinkstatus:                         ## @getlinkstatus
	.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	_netdev_priv
	movq	%rax, %r15
	movl	$0, (%rax)
	movq	8(%rax), %rax
	movq	_MysonPHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movl	$4096, %ebx                     ## imm = 0x1000
	movq	_BMCRSR@GOTPCREL(%rip), %r14
	movq	_LinkIsUp2@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	24(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r12)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$100, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_1:
	movl	$4096, %ebx                     ## imm = 0x1000
	movq	_MII_BMSR@GOTPCREL(%rip), %r12
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_mdio_read
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$100, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_2
	jmp	LBB0_8
LBB0_7:
	movl	$1, (%r15)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MysonPHY,8,3                   ## @MysonPHY
	.comm	_BMCRSR,8,3                     ## @BMCRSR
	.comm	_LinkIsUp2,4,2                  ## @LinkIsUp2
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_LSTATUS,4,2               ## @BMSR_LSTATUS
	.no_dead_strip	_getlinkstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getlinkstatus
_getlinkstatus:                         ; @getlinkstatus
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	str	wzr, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MysonPHY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MysonPHY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	w20, #4096
Lloh3:
	adrp	x21, _BMCRSR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BMCRSR@GOTPAGEOFF]
Lloh5:
	adrp	x22, _LinkIsUp2@GOTPAGE
Lloh6:
	ldr	x22, [x22, _LinkIsUp2@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	bl	_udelay
	subs	w20, w20, #1
	b.ne	LBB0_2
	b	LBB0_8
LBB0_4:
	mov	w21, #4096
Lloh7:
	adrp	x22, _MII_BMSR@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MII_BMSR@GOTPAGEOFF]
Lloh9:
	adrp	x23, _BMSR_LSTATUS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _BMSR_LSTATUS@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_mdio_read
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #100
	bl	_udelay
	subs	w21, w21, #1
	b.ne	LBB0_5
	b	LBB0_8
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MysonPHY,8,3                   ; @MysonPHY
	.comm	_BMCRSR,8,3                     ; @BMCRSR
	.comm	_LinkIsUp2,4,2                  ; @LinkIsUp2
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_LSTATUS,4,2               ; @BMSR_LSTATUS
	.no_dead_strip	_getlinkstatus
.subsections_via_symbols
