	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_speed_down                 ## -- Begin function phy_speed_down
	.p2align	4, 0x90
_phy_speed_down:                        ## @phy_speed_down
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_adv_tmp@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	___ETHTOOL_DECLARE_LINK_MODE_MASK
	movq	(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r15), %edi
	movl	8(%rbx), %esi
	callq	_linkmode_copy
	movq	%rbx, %rdi
	callq	_phy_speed_down_core
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	12(%rbx), %edi
	movl	(%r15), %esi
	callq	_linkmode_copy
	movl	8(%rbx), %edi
	movl	(%r15), %esi
	callq	_linkmode_equal
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	callq	_phy_config_aneg
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movl	$0, %eax
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_poll_aneg_done             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_adv_tmp,4,2                    ## @adv_tmp
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_speed_down                 ; -- Begin function phy_speed_down
	.p2align	2
_phy_speed_down:                        ; @phy_speed_down
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _adv_tmp@GOTPAGE
Lloh1:
	ldr	x21, [x21, _adv_tmp@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	___ETHTOOL_DECLARE_LINK_MODE_MASK
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	_linkmode_copy
	mov	x0, x19
	bl	_phy_speed_down_core
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
	bl	_linkmode_copy
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_linkmode_equal
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
LBB0_5:
	mov	x0, x19
	bl	_phy_config_aneg
	cbnz	w0, LBB0_4
; %bb.6:
	cbz	w20, LBB0_3
; %bb.7:
	mov	x0, x19
	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
	b	_phy_poll_aneg_done
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_adv_tmp,4,2                    ; @adv_tmp
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
.subsections_via_symbols
