	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8169_set_speed_xmii
_rtl8169_set_speed_xmii:                ## @rtl8169_set_speed_xmii
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$31, %esi
	xorl	%edx, %edx
	callq	_rtl_writephy
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl_readphy
	movq	_ADVERTISE_10HALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_ADVERTISE_10FULL@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r9d
	movl	%r9d, %ebx
	orl	%esi, %ebx
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r8d, %edx
	orl	%ecx, %edx
	orl	%ebx, %edx
	notl	%edx
	andl	%eax, %edx
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	%r13d, %r14d
	cmovnel	%esi, %r14d
	orl	%edx, %r14d
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	cmovnel	%r9d, %eax
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%r13d, %ebx
	cmovnel	%r8d, %ebx
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	andl	%r13d, %r15d
	cmovnel	%ecx, %r15d
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rcx
	movq	_ADVERTISE_PAUSE_ASYM@GOTPCREL(%rip), %rdx
	orl	(%rcx), %r14d
	orl	%eax, %r14d
	orl	(%rdx), %r14d
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rtl_readphy
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_ADVERTISE_1000HALF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %r12d
	orl	%ecx, %r12d
	notl	%r12d
	andl	%eax, %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdi
	cmpq	$0, 8(%rax)
	movq	_ADVERTISED_1000baseT_Half@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_3
## %bb.2:
	andl	%r13d, %eax
	cmovel	%eax, %edx
	orl	%r12d, %edx
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	cmovel	%r13d, %ecx
	orl	%edx, %ecx
	movl	%ecx, %r12d
LBB0_4:
	orl	%r15d, %ebx
	orl	%ebx, %r14d
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %rbx
	movl	%r14d, %edx
	callq	_rtl_writephy
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_rtl_writephy
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_6:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_9
## %bb.7:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_18
## %bb.8:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_9:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_11:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_rtl_writephy
	movq	(%rbx), %rax
	movq	_RTL_GIGA_MAC_VER_02@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movq	_RTL_GIGA_MAC_VER_03@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
LBB0_13:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_16
## %bb.14:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	$8504, %edx                     ## imm = 0x2138
	callq	_rtl_writephy
	movq	%rbx, %rdi
	movl	$14, %esi
	movl	$608, %edx                      ## imm = 0x260
	jmp	LBB0_17
LBB0_3:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r13d, %eax
	je	LBB0_4
## %bb.5:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_netif_info
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_18
LBB0_16:
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	$8456, %edx                     ## imm = 0x2108
	callq	_rtl_writephy
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	$14, %esi
	xorl	%edx, %edx
LBB0_17:
	callq	_rtl_writephy
LBB0_18:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ADVERTISE_10HALF,4,2           ## @ADVERTISE_10HALF
	.comm	_ADVERTISE_10FULL,4,2           ## @ADVERTISE_10FULL
	.comm	_ADVERTISE_100HALF,4,2          ## @ADVERTISE_100HALF
	.comm	_ADVERTISE_100FULL,4,2          ## @ADVERTISE_100FULL
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ## @ADVERTISE_PAUSE_ASYM
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ## @ADVERTISE_1000FULL
	.comm	_ADVERTISE_1000HALF,4,2         ## @ADVERTISE_1000HALF
	.comm	_ADVERTISED_1000baseT_Half,4,2  ## @ADVERTISED_1000baseT_Half
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY does not support 1000Mbps\n"

	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_RTL_GIGA_MAC_VER_02,8,3        ## @RTL_GIGA_MAC_VER_02
	.comm	_RTL_GIGA_MAC_VER_03,8,3        ## @RTL_GIGA_MAC_VER_03
	.no_dead_strip	_rtl8169_set_speed_xmii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8169_set_speed_xmii
_rtl8169_set_speed_xmii:                ; @rtl8169_set_speed_xmii
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x25, x3
	mov	x21, x2
	mov	x20, x1
	mov	x24, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	mov	w1, #31
	mov	w2, #0
	bl	_rtl_writephy
Lloh3:
	adrp	x26, _AUTONEG_ENABLE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AUTONEG_ENABLE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.1:
	stp	x21, x20, [sp, #32]             ; 16-byte Folded Spill
Lloh5:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_readphy
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
Lloh8:
	adrp	x8, _ADVERTISE_10HALF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADVERTISE_10HALF@GOTPAGEOFF]
Lloh10:
	ldr	w28, [x8]
Lloh11:
	adrp	x8, _ADVERTISE_10FULL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADVERTISE_10FULL@GOTPAGEOFF]
Lloh13:
	ldr	w27, [x8]
Lloh14:
	adrp	x8, _ADVERTISE_100HALF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh16:
	ldr	w25, [x8]
Lloh17:
	adrp	x8, _ADVERTISE_100FULL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ADVERTISE_100FULL@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
Lloh20:
	adrp	x8, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w23
	csel	w8, wzr, w28, eq
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh23:
	adrp	x8, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w23
Lloh26:
	adrp	x8, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
	csel	w9, wzr, w27, eq
Lloh28:
	ldr	w8, [x8]
	tst	w8, w23
	csel	w8, wzr, w25, eq
	stp	w8, w9, [sp, #16]               ; 8-byte Folded Spill
Lloh29:
	adrp	x8, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w23
	csel	w8, wzr, w21, eq
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh32:
	adrp	x8, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh34:
	ldr	w20, [x8]
Lloh35:
	adrp	x8, _ADVERTISE_PAUSE_ASYM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ADVERTISE_PAUSE_ASYM@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
Lloh38:
	adrp	x8, _MII_CTRL1000@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MII_CTRL1000@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_readphy
Lloh41:
	adrp	x8, _ADVERTISE_1000FULL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _ADVERTISE_1000HALF@GOTPAGE
Lloh45:
	ldr	x9, [x9, _ADVERTISE_1000HALF@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w26, w0, w10
	ldr	x11, [x19, #8]
Lloh47:
	adrp	x10, _ADVERTISED_1000baseT_Half@GOTPAGE
Lloh48:
	ldr	x10, [x10, _ADVERTISED_1000baseT_Half@GOTPAGEOFF]
Lloh49:
	ldr	w10, [x10]
	cbz	x11, LBB0_13
; %bb.2:
	tst	w10, w23
	csel	w9, wzr, w9, eq
	orr	w9, w9, w26
Lloh50:
	adrp	x10, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh51:
	ldr	x10, [x10, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	tst	w10, w23
	csel	w8, wzr, w8, eq
	orr	w26, w9, w8
LBB0_3:
	orr	w8, w27, w28
	orr	w8, w8, w25
	orr	w8, w8, w21
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	bic	w8, w9, w8
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	orr	w8, w9, w8
	orr	w8, w8, w20
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	orr	w8, w8, w9
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	orr	w8, w8, w9
	ldr	w9, [sp, #16]                   ; 4-byte Folded Reload
	orr	w8, w8, w9
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	orr	w2, w8, w9
Lloh53:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
Lloh56:
	adrp	x9, _BMCR_ANRESTART@GOTPAGE
Lloh57:
	ldr	x9, [x9, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w22, w9, w8
Lloh59:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_writephy
Lloh62:
	adrp	x8, _MII_CTRL1000@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MII_CTRL1000@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x26
	bl	_rtl_writephy
	ldp	x21, x20, [sp, #32]             ; 16-byte Folded Reload
Lloh65:
	adrp	x26, _AUTONEG_ENABLE@GOTPAGE
Lloh66:
	ldr	x26, [x26, _AUTONEG_ENABLE@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh67:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
Lloh69:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_6
; %bb.5:
	mov	w22, #0
	b	LBB0_8
LBB0_6:
Lloh70:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh71:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh72:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.7:
Lloh73:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh74:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh75:
	ldr	w22, [x8]
LBB0_8:
Lloh76:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh77:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh78:
	ldr	x8, [x8]
	cmp	x8, x25
	b.ne	LBB0_10
; %bb.9:
Lloh79:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh80:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_10:
Lloh82:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh83:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_rtl_writephy
	ldr	x8, [x19]
Lloh85:
	adrp	x9, _RTL_GIGA_MAC_VER_02@GOTPAGE
Lloh86:
	ldr	x9, [x9, _RTL_GIGA_MAC_VER_02@GOTPAGEOFF]
Lloh87:
	ldr	x9, [x9]
Lloh88:
	adrp	x10, _RTL_GIGA_MAC_VER_03@GOTPAGE
Lloh89:
	ldr	x10, [x10, _RTL_GIGA_MAC_VER_03@GOTPAGEOFF]
Lloh90:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_17
; %bb.11:
Lloh91:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh92:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh93:
	ldr	x8, [x8]
	ldr	x9, [x26]
	cmp	x8, x21
	mov	x0, x19
	mov	w1, #23
	ccmp	x9, x20, #4, eq
	b.ne	LBB0_15
; %bb.12:
	mov	w2, #8456
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #14
	mov	w2, #0
	b	LBB0_16
LBB0_13:
Lloh94:
	adrp	x8, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh95:
	ldr	x8, [x8, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh96:
	ldr	w8, [x8]
	orr	w8, w8, w10
	tst	w8, w23
	b.eq	LBB0_3
; %bb.14:
Lloh97:
	adrp	x8, _link@GOTPAGE
Lloh98:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
Lloh100:
	adrp	x3, l_.str@PAGE
Lloh101:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_netif_info
	b	LBB0_18
LBB0_15:
	mov	w2, #8504
	bl	_rtl_writephy
	mov	x0, x19
	mov	w1, #14
	mov	w2, #608
LBB0_16:
	bl	_rtl_writephy
LBB0_17:
	mov	w22, #0
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ADVERTISE_10HALF,4,2           ; @ADVERTISE_10HALF
	.comm	_ADVERTISE_10FULL,4,2           ; @ADVERTISE_10FULL
	.comm	_ADVERTISE_100HALF,4,2          ; @ADVERTISE_100HALF
	.comm	_ADVERTISE_100FULL,4,2          ; @ADVERTISE_100FULL
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ; @ADVERTISE_PAUSE_ASYM
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ; @ADVERTISE_1000FULL
	.comm	_ADVERTISE_1000HALF,4,2         ; @ADVERTISE_1000HALF
	.comm	_ADVERTISED_1000baseT_Half,4,2  ; @ADVERTISED_1000baseT_Half
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY does not support 1000Mbps\n"

	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_RTL_GIGA_MAC_VER_02,8,3        ; @RTL_GIGA_MAC_VER_02
	.comm	_RTL_GIGA_MAC_VER_03,8,3        ; @RTL_GIGA_MAC_VER_03
	.no_dead_strip	_rtl8169_set_speed_xmii
.subsections_via_symbols
