	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_start_aneg                 ## -- Begin function phy_start_aneg
	.p2align	4, 0x90
_phy_start_aneg:                        ## @phy_start_aneg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_phy_sanitize_settings
LBB0_2:
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movq	_PHY_HALTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	movq	_PHY_FORCING@GOTPCREL(%rip), %rax
	cmoveq	_PHY_AN@GOTPCREL(%rip), %rax
	movq	_PHY_FORCE_TIMEOUT@GOTPCREL(%rip), %rcx
	cmoveq	_PHY_AN_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	(%rcx), %eax
	movl	%eax, 20(%rbx)
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_PHY_HALTED,8,3                 ## @PHY_HALTED
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_PHY_AN,8,3                     ## @PHY_AN
	.comm	_PHY_AN_TIMEOUT,4,2             ## @PHY_AN_TIMEOUT
	.comm	_PHY_FORCING,8,3                ## @PHY_FORCING
	.comm	_PHY_FORCE_TIMEOUT,4,2          ## @PHY_FORCE_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_start_aneg                 ; -- Begin function phy_start_aneg
	.p2align	2
_phy_start_aneg:                        ; @phy_start_aneg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_phy_sanitize_settings
LBB0_2:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _PHY_HALTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_HALTED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _PHY_AN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PHY_AN@GOTPAGEOFF]
Lloh11:
	adrp	x10, _PHY_FORCING@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PHY_FORCING@GOTPAGEOFF]
	ldr	x11, [x20]
	cmp	x8, x11
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _PHY_AN_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PHY_AN_TIMEOUT@GOTPAGEOFF]
	str	x8, [x20, #8]
Lloh15:
	adrp	x8, _PHY_FORCE_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHY_FORCE_TIMEOUT@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x20, #20]
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_PHY_HALTED,8,3                 ; @PHY_HALTED
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_PHY_AN,8,3                     ; @PHY_AN
	.comm	_PHY_AN_TIMEOUT,4,2             ; @PHY_AN_TIMEOUT
	.comm	_PHY_FORCING,8,3                ; @PHY_FORCING
	.comm	_PHY_FORCE_TIMEOUT,4,2          ; @PHY_FORCE_TIMEOUT
.subsections_via_symbols
