	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_link_ok
_smc_link_ok:                           ## @smc_link_ok
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %ebx
	callq	_netdev_priv
	movq	_CFG_MII_SELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	addq	$4, %rax
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mii_link_ok                    ## TAILCALL
LBB0_1:
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_EPH@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_inw
	movq	_EPH_LINK_OK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_MII_SELECT,4,2             ## @CFG_MII_SELECT
	.comm	_EPH,8,3                        ## @EPH
	.comm	_EPH_LINK_OK,4,2                ## @EPH_LINK_OK
	.no_dead_strip	_smc_link_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_link_ok
_smc_link_ok:                           ; @smc_link_ok
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w19, [x0]
	bl	_netdev_priv
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CFG_MII_SELECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CFG_MII_SELECT@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
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mii_link_ok
LBB0_2:
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh3:
	adrp	x8, _EPH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, x19
	bl	_inw
Lloh6:
	adrp	x8, _EPH_LINK_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPH_LINK_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w0, w8, w0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_CFG_MII_SELECT,4,2             ; @CFG_MII_SELECT
	.comm	_EPH,8,3                        ; @EPH
	.comm	_EPH_LINK_OK,4,2                ; @EPH_LINK_OK
	.no_dead_strip	_smc_link_ok
.subsections_via_symbols
