	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9000_get_link
_dm9000_get_link:                       ## @dm9000_get_link
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_to_dm9000_board
	movq	_DM9000_PLATF_EXT_PHY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	addq	$4, %rax
	movq	%rax, %rdi
	popq	%rbp
	jmp	_mii_link_ok                    ## TAILCALL
LBB0_1:
	movq	_DM9000_NSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_dm9000_read_locked
	movq	_NSR_LINKST@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	testl	%eax, (%rdx)
	setne	%cl
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM9000_PLATF_EXT_PHY,4,2       ## @DM9000_PLATF_EXT_PHY
	.comm	_DM9000_NSR,4,2                 ## @DM9000_NSR
	.comm	_NSR_LINKST,4,2                 ## @NSR_LINKST
	.no_dead_strip	_dm9000_get_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9000_get_link
_dm9000_get_link:                       ; @dm9000_get_link
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_to_dm9000_board
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DM9000_PLATF_EXT_PHY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DM9000_PLATF_EXT_PHY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x0, x0, #4
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_mii_link_ok
LBB0_2:
Lloh3:
	adrp	x8, _DM9000_NSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM9000_NSR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_dm9000_read_locked
Lloh6:
	adrp	x8, _NSR_LINKST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NSR_LINKST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DM9000_PLATF_EXT_PHY,4,2       ; @DM9000_PLATF_EXT_PHY
	.comm	_DM9000_NSR,4,2                 ; @DM9000_NSR
	.comm	_NSR_LINKST,4,2                 ; @NSR_LINKST
	.no_dead_strip	_dm9000_get_link
.subsections_via_symbols
