	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtsec_restart_autoneg          ## -- Begin function dtsec_restart_autoneg
	.p2align	4, 0x90
_dtsec_restart_autoneg:                 ## @dtsec_restart_autoneg
	.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, %rbx
	movl	4(%rdi), %edi
	callq	_is_init_done
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	movq	_MII_BMCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_phy_read
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rcx
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rcx), %ecx
	orl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rsi
	orl	(%rax), %edx
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	orl	(%rsi), %edx
	orl	%ecx, %edx
	orl	(%rax), %edx
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_phy_write
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtsec_restart_autoneg          ; -- Begin function dtsec_restart_autoneg
	.p2align	2
_dtsec_restart_autoneg:                 ; @dtsec_restart_autoneg
	.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	x19, x0
	ldr	w0, [x0, #4]
	bl	_is_init_done
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x20, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_phy_read
Lloh2:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _BMCR_SPEED1000@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh8:
	adrp	x10, _BMCR_ANENABLE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _BMCR_ANRESTART@GOTPAGE
Lloh12:
	ldr	x11, [x11, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	adrp	x12, _BMCR_FULLDPLX@GOTPAGE
Lloh15:
	ldr	x12, [x12, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
	orr	w9, w10, w9
	orr	w9, w9, w11
	orr	w8, w9, w8
	orr	w2, w8, w12
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_phy_write
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
.subsections_via_symbols
