	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdio45_nway_restart            ## -- Begin function mdio45_nway_restart
	.p2align	4, 0x90
_mdio45_nway_restart:                   ## @mdio45_nway_restart
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MDIO_DEVS_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	4(%rdi), %esi
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MDIO_AN_CTRL1_RESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, %r9d
	callq	_mdio_set_flag
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_DEVS_AN,4,2               ## @MDIO_DEVS_AN
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_CTRL1,4,2                 ## @MDIO_CTRL1
	.comm	_MDIO_AN_CTRL1_RESTART,4,2      ## @MDIO_AN_CTRL1_RESTART
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdio45_nway_restart            ; -- Begin function mdio45_nway_restart
	.p2align	2
_mdio45_nway_restart:                   ; @mdio45_nway_restart
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MDIO_DEVS_AN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MDIO_DEVS_AN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x0, #4]
Lloh3:
	adrp	x8, _MDIO_MMD_AN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_MMD_AN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _MDIO_CTRL1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_CTRL1@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _MDIO_AN_CTRL1_RESTART@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_AN_CTRL1_RESTART@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	w5, #1
	bl	_mdio_set_flag
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_DEVS_AN,4,2               ; @MDIO_DEVS_AN
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_CTRL1,4,2                 ; @MDIO_CTRL1
	.comm	_MDIO_AN_CTRL1_RESTART,4,2      ; @MDIO_AN_CTRL1_RESTART
.subsections_via_symbols
