	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8125_config_aneg
_rtl8125_config_aneg:                   ## @rtl8125_config_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_ETHTOOL_LINK_MODE_2500baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_linkmode_test_bit
	xorl	%r8d, %r8d
	testq	%rax, %rax
	movq	_RTL_ADV_2500FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmovnel	%ecx, %r8d
	movq	%rbx, %rdi
	movl	$2653, %esi                     ## imm = 0xA5D
	movl	$18, %edx
	callq	_phy_modify_paged_changed
	movl	%eax, %esi
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___genphy_config_aneg           ## TAILCALL
LBB0_2:
	movl	%esi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_ETHTOOL_LINK_MODE_2500baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_2500baseT_Full_BIT
	.comm	_RTL_ADV_2500FULL,4,2           ## @RTL_ADV_2500FULL
	.no_dead_strip	_rtl8125_config_aneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8125_config_aneg
_rtl8125_config_aneg:                   ; @rtl8125_config_aneg
	.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	x8, [x0]
Lloh0:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ETHTOOL_LINK_MODE_2500baseT_Full_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_2500baseT_Full_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_linkmode_test_bit
Lloh6:
	adrp	x8, _RTL_ADV_2500FULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTL_ADV_2500FULL@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	cmp	x0, #0
	csel	w4, wzr, w3, eq
	mov	x0, x19
	mov	w1, #2653
	mov	w2, #18
	bl	_phy_modify_paged_changed
	mov	x1, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w1, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___genphy_config_aneg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_ETHTOOL_LINK_MODE_2500baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_2500baseT_Full_BIT
	.comm	_RTL_ADV_2500FULL,4,2           ; @RTL_ADV_2500FULL
	.no_dead_strip	_rtl8125_config_aneg
.subsections_via_symbols
