	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_nway_reset
_smc_nway_reset:                        ## @smc_nway_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_CFG_MII_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_BANK_SELECT@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inw
	movl	%eax, %r14d
	movl	$3, %edi
	callq	_SMC_SELECT_BANK
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_mii_nway_restart
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_SMC_SELECT_BANK
	movl	%ebx, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_MII_SELECT,4,2             ## @CFG_MII_SELECT
	.comm	_BANK_SELECT,8,3                ## @BANK_SELECT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_smc_nway_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_nway_reset
_smc_nway_reset:                        ; @smc_nway_reset
	.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
	mov	x20, 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:
	mov	x19, x0
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _BANK_SELECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BANK_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inw
	mov	x20, x0
	mov	w0, #3
	bl	_SMC_SELECT_BANK
	add	x0, x19, #4
	bl	_mii_nway_restart
	mov	x19, x0
	mov	x0, x20
	bl	_SMC_SELECT_BANK
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_MII_SELECT,4,2             ; @CFG_MII_SELECT
	.comm	_BANK_SELECT,8,3                ; @BANK_SELECT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_smc_nway_reset
.subsections_via_symbols
