	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8211_config_aneg
_rtl8211_config_aneg:                   ## @rtl8211_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_genphy_config_aneg
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	8(%rbx), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	$608, %r14d                     ## imm = 0x260
	movl	$8504, %edx                     ## imm = 0x2138
	jmp	LBB0_5
LBB0_4:
	xorl	%r14d, %r14d
	movl	$8456, %edx                     ## imm = 0x2108
LBB0_5:
	movq	%rbx, %rdi
	movl	$23, %esi
	callq	_phy_write
	movq	%rbx, %rdi
	movl	$14, %esi
	movl	%r14d, %edx
	callq	_phy_write
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.no_dead_strip	_rtl8211_config_aneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8211_config_aneg
_rtl8211_config_aneg:                   ; @rtl8211_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
	bl	_genphy_config_aneg
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w20, #608
	mov	w2, #8504
	b	LBB0_5
LBB0_4:
	mov	w20, #0
	mov	w2, #8456
LBB0_5:
	mov	x0, x19
	mov	w1, #23
	bl	_phy_write
	mov	x0, x19
	mov	w1, #14
	mov	x2, x20
	bl	_phy_write
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.no_dead_strip	_rtl8211_config_aneg
.subsections_via_symbols
