	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8152_set_speed
_rtl8152_set_speed:                     ## @rtl8152_set_speed
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rsi
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rcx, (%rsi)
	je	LBB0_3
## %bb.2:
	cmpq	%rcx, %rax
	jne	LBB0_30
LBB0_3:
	cmpl	$128, %edx
	je	LBB0_27
## %bb.4:
	cmpl	$129, %edx
	je	LBB0_31
## %bb.5:
	cmpl	$130, %edx
	jne	LBB0_30
## %bb.6:
	movq	_BMCR_SPEED10@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cmpq	%rcx, %rax
	jne	LBB0_34
## %bb.7:
	movq	_FORCE_10M_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_8:
	movl	%r8d, %r14d
	movq	_RTL_ADVERTISED_10_HALF@GOTPCREL(%rip), %r12
	movq	_RTL_ADVERTISED_10_FULL@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	(%r12), %eax
	movq	_RTL_ADVERTISED_100_HALF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RTL_ADVERTISED_100_FULL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%ecx, %ecx
	cmpq	$0, 24(%r15)
	movq	_RTL_ADVERTISED_1000_FULL@GOTPCREL(%rip), %rdx
	je	LBB0_10
## %bb.9:
	movl	(%rdx), %ecx
LBB0_10:
	orl	%ecx, %eax
	testl	%r14d, %eax
	je	LBB0_30
## %bb.11:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_r8152_mdio_read
	movq	_ADVERTISE_10HALF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_ADVERTISE_10FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	orl	%edi, %esi
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movl	%edx, %ebx
	orl	%r8d, %ebx
	orl	%esi, %ebx
	notl	%ebx
	andl	%eax, %ebx
	testl	%r14d, (%r12)
	je	LBB0_13
## %bb.12:
	orl	%edi, %ebx
	movq	_NWAY_10M_HALF@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, 32(%r15)
LBB0_13:
	testl	%r14d, (%r13)
	movq	_RTL_ADVERTISED_100_FULL@GOTPCREL(%rip), %rsi
	je	LBB0_15
## %bb.14:
	orl	%ecx, %ebx
	movq	_NWAY_10M_FULL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%r15)
LBB0_15:
	movq	_RTL_ADVERTISED_100_HALF@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_17
## %bb.16:
	orl	%edx, %ebx
	movq	_NWAY_100M_HALF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%r15)
LBB0_17:
	testl	%r14d, (%rsi)
	je	LBB0_19
## %bb.18:
	orl	%r8d, %ebx
	movq	_NWAY_100M_FULL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%r15)
LBB0_19:
	cmpl	%ebx, %eax
	je	LBB0_21
## %bb.20:
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_r8152_mdio_write
	movl	%ebx, 16(%r15)
LBB0_21:
	cmpq	$0, 24(%r15)
	je	LBB0_26
## %bb.22:
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_r8152_mdio_read
	movq	_ADVERTISE_1000FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_ADVERTISE_1000HALF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	movq	_RTL_ADVERTISED_1000_FULL@GOTPCREL(%rip), %rsi
	testl	%r14d, (%rsi)
	je	LBB0_24
## %bb.23:
	orl	%ecx, %edx
	movq	_NWAY_1000M_FULL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%r15)
LBB0_24:
	cmpl	%edx, %eax
	je	LBB0_26
## %bb.25:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_r8152_mdio_write
LBB0_26:
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	xorl	%eax, %eax
	jmp	LBB0_39
LBB0_27:
	cmpq	$0, 24(%r15)
	je	LBB0_30
## %bb.28:
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rdx
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	orl	(%rdx), %ebx
	movq	_NWAY_1000M_FULL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 32(%r15)
	movl	$1, %edx
	cmpq	%rcx, %rax
	jne	LBB0_37
	jmp	LBB0_38
LBB0_30:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_46
LBB0_31:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cmpq	%rcx, %rax
	jne	LBB0_35
## %bb.32:
	movq	_FORCE_100M_FULL@GOTPCREL(%rip), %rax
LBB0_33:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
	movl	$1, %edx
	jmp	LBB0_38
LBB0_34:
	movq	_FORCE_10M_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_35:
	movq	_FORCE_100M_HALF@GOTPCREL(%rip), %rax
LBB0_36:
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
LBB0_37:
	xorl	%edx, %edx
LBB0_38:
	movl	%edx, 8(%r15)
	movl	$1, %eax
LBB0_39:
	movl	%eax, 12(%r15)
	movq	_PHY_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	movq	_BMCR_RESET@GOTPCREL(%rip), %r12
	movl	$0, %r13d
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	movl	(%r12), %r13d
LBB0_41:
	orl	%ebx, %r13d
	movq	_MII_BMCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_r8152_mdio_write
	testl	%r13d, (%r12)
	je	LBB0_45
## %bb.42:
	movl	$49, %ebx
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_r8152_mdio_read
	subl	$1, %ebx
	setb	%cl
	testl	%eax, (%r12)
	je	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=1
	testb	%cl, %cl
	je	LBB0_43
LBB0_45:
	xorl	%eax, %eax
LBB0_46:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BMCR_SPEED10,4,2               ## @BMCR_SPEED10
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_FORCE_10M_FULL,8,3             ## @FORCE_10M_FULL
	.comm	_FORCE_10M_HALF,8,3             ## @FORCE_10M_HALF
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_FORCE_100M_FULL,8,3            ## @FORCE_100M_FULL
	.comm	_FORCE_100M_HALF,8,3            ## @FORCE_100M_HALF
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_NWAY_1000M_FULL,8,3            ## @NWAY_1000M_FULL
	.comm	_RTL_ADVERTISED_10_HALF,4,2     ## @RTL_ADVERTISED_10_HALF
	.comm	_RTL_ADVERTISED_10_FULL,4,2     ## @RTL_ADVERTISED_10_FULL
	.comm	_RTL_ADVERTISED_100_HALF,4,2    ## @RTL_ADVERTISED_100_HALF
	.comm	_RTL_ADVERTISED_100_FULL,4,2    ## @RTL_ADVERTISED_100_FULL
	.comm	_RTL_ADVERTISED_1000_FULL,4,2   ## @RTL_ADVERTISED_1000_FULL
	.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	_NWAY_10M_HALF,8,3              ## @NWAY_10M_HALF
	.comm	_NWAY_10M_FULL,8,3              ## @NWAY_10M_FULL
	.comm	_NWAY_100M_HALF,8,3             ## @NWAY_100M_HALF
	.comm	_NWAY_100M_FULL,8,3             ## @NWAY_100M_FULL
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ## @ADVERTISE_1000FULL
	.comm	_ADVERTISE_1000HALF,4,2         ## @ADVERTISE_1000HALF
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_PHY_RESET,4,2                  ## @PHY_RESET
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.no_dead_strip	_rtl8152_set_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8152_set_speed
_rtl8152_set_speed:                     ; @rtl8152_set_speed
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _DUPLEX_HALF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DUPLEX_HALF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
Lloh6:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x3
	ccmp	x8, x3, #4, ne
	b.ne	LBB0_26
; %bb.2:
	cmp	w2, #128
	b.eq	LBB0_24
; %bb.3:
	cmp	w2, #129
	b.eq	LBB0_27
; %bb.4:
	cmp	w2, #130
	b.ne	LBB0_26
; %bb.5:
Lloh9:
	adrp	x9, _BMCR_SPEED10@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BMCR_SPEED10@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x9]
	cmp	x8, x3
	b.ne	LBB0_32
; %bb.6:
Lloh12:
	adrp	x8, _FORCE_10M_FULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FORCE_10M_FULL@GOTPAGEOFF]
	b	LBB0_29
LBB0_7:
	mov	x20, x4
Lloh14:
	adrp	x27, _RTL_ADVERTISED_10_HALF@GOTPAGE
Lloh15:
	ldr	x27, [x27, _RTL_ADVERTISED_10_HALF@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh16:
	adrp	x26, _RTL_ADVERTISED_10_FULL@GOTPAGE
Lloh17:
	ldr	x26, [x26, _RTL_ADVERTISED_10_FULL@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w9, w8
Lloh18:
	adrp	x25, _RTL_ADVERTISED_100_HALF@GOTPAGE
Lloh19:
	ldr	x25, [x25, _RTL_ADVERTISED_100_HALF@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
Lloh20:
	adrp	x24, _RTL_ADVERTISED_100_FULL@GOTPAGE
Lloh21:
	ldr	x24, [x24, _RTL_ADVERTISED_100_FULL@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh22:
	adrp	x22, _RTL_ADVERTISED_1000_FULL@GOTPAGE
Lloh23:
	ldr	x22, [x22, _RTL_ADVERTISED_1000_FULL@GOTPAGEOFF]
	ldr	x9, [x19, #24]
	ldr	w10, [x22]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	tst	w8, w4
	b.eq	LBB0_26
; %bb.8:
Lloh24:
	adrp	x23, _MII_ADVERTISE@GOTPAGE
Lloh25:
	ldr	x23, [x23, _MII_ADVERTISE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_r8152_mdio_read
Lloh26:
	adrp	x8, _ADVERTISE_10HALF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ADVERTISE_10HALF@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x8]
Lloh29:
	adrp	x8, _ADVERTISE_10FULL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ADVERTISE_10FULL@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x8]
	orr	w8, w10, w11
Lloh32:
	adrp	x9, _ADVERTISE_100HALF@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x12, _ADVERTISE_100FULL@GOTPAGE
Lloh36:
	ldr	x12, [x12, _ADVERTISE_100FULL@GOTPAGEOFF]
	orr	w13, w8, w9
Lloh37:
	ldr	w8, [x12]
	orr	w12, w13, w8
	bic	w21, w0, w12
	ldr	w12, [x27]
	tst	w12, w20
	b.eq	LBB0_10
; %bb.9:
	orr	w21, w21, w11
Lloh38:
	adrp	x11, _NWAY_10M_HALF@GOTPAGE
Lloh39:
	ldr	x11, [x11, _NWAY_10M_HALF@GOTPAGEOFF]
Lloh40:
	ldr	x11, [x11]
	str	x11, [x19, #32]
LBB0_10:
	ldr	w11, [x26]
	tst	w11, w20
	b.eq	LBB0_12
; %bb.11:
	orr	w21, w21, w10
Lloh41:
	adrp	x10, _NWAY_10M_FULL@GOTPAGE
Lloh42:
	ldr	x10, [x10, _NWAY_10M_FULL@GOTPAGEOFF]
Lloh43:
	ldr	x10, [x10]
	str	x10, [x19, #32]
LBB0_12:
	ldr	w10, [x25]
	tst	w10, w20
	b.eq	LBB0_14
; %bb.13:
	orr	w21, w21, w9
Lloh44:
	adrp	x9, _NWAY_100M_HALF@GOTPAGE
Lloh45:
	ldr	x9, [x9, _NWAY_100M_HALF@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	str	x9, [x19, #32]
LBB0_14:
	ldr	w9, [x24]
	tst	w9, w20
	b.eq	LBB0_16
; %bb.15:
	orr	w21, w21, w8
Lloh47:
	adrp	x8, _NWAY_100M_FULL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NWAY_100M_FULL@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	str	x8, [x19, #32]
LBB0_16:
	cmp	w0, w21
	b.eq	LBB0_18
; %bb.17:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_r8152_mdio_write
	str	w21, [x19, #16]
LBB0_18:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_23
; %bb.19:
Lloh50:
	adrp	x21, _MII_CTRL1000@GOTPAGE
Lloh51:
	ldr	x21, [x21, _MII_CTRL1000@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_r8152_mdio_read
Lloh52:
	adrp	x8, _ADVERTISE_1000FULL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ADVERTISE_1000FULL@GOTPAGEOFF]
Lloh54:
	adrp	x9, _ADVERTISE_1000HALF@GOTPAGE
Lloh55:
	ldr	x9, [x9, _ADVERTISE_1000HALF@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	ldr	w9, [x9]
	orr	w9, w9, w8
	bic	w2, w0, w9
	ldr	w9, [x22]
	tst	w9, w20
	b.eq	LBB0_21
; %bb.20:
	orr	w2, w2, w8
Lloh58:
	adrp	x8, _NWAY_1000M_FULL@GOTPAGE
Lloh59:
	ldr	x8, [x8, _NWAY_1000M_FULL@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	str	x8, [x19, #32]
LBB0_21:
	cmp	w0, w2
	b.eq	LBB0_23
; %bb.22:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_r8152_mdio_write
LBB0_23:
	mov	w8, #0
Lloh61:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh62:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
Lloh64:
	adrp	x10, _BMCR_ANRESTART@GOTPAGE
Lloh65:
	ldr	x10, [x10, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh66:
	ldr	w10, [x10]
	orr	w20, w10, w9
	b	LBB0_36
LBB0_24:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_26
; %bb.25:
Lloh67:
	adrp	x9, _BMCR_SPEED1000@GOTPAGE
Lloh68:
	ldr	x9, [x9, _BMCR_SPEED1000@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
Lloh70:
	adrp	x10, _BMCR_FULLDPLX@GOTPAGE
Lloh71:
	ldr	x10, [x10, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh72:
	ldr	w10, [x10]
	orr	w20, w10, w9
Lloh73:
	adrp	x9, _NWAY_1000M_FULL@GOTPAGE
Lloh74:
	ldr	x9, [x9, _NWAY_1000M_FULL@GOTPAGEOFF]
Lloh75:
	ldr	x9, [x9]
	str	x9, [x19, #32]
	cmp	x8, x3
	b.eq	LBB0_30
	b	LBB0_34
LBB0_26:
Lloh76:
	adrp	x8, _EINVAL@GOTPAGE
Lloh77:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_40
LBB0_27:
Lloh79:
	adrp	x9, _BMCR_SPEED100@GOTPAGE
Lloh80:
	ldr	x9, [x9, _BMCR_SPEED100@GOTPAGEOFF]
Lloh81:
	ldr	w20, [x9]
	cmp	x8, x3
	b.ne	LBB0_31
; %bb.28:
Lloh82:
	adrp	x8, _FORCE_100M_FULL@GOTPAGE
Lloh83:
	ldr	x8, [x8, _FORCE_100M_FULL@GOTPAGEOFF]
LBB0_29:
Lloh84:
	adrp	x9, _BMCR_FULLDPLX@GOTPAGE
Lloh85:
	ldr	x9, [x9, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh86:
	ldr	w9, [x9]
	orr	w20, w9, w20
	ldr	x8, [x8]
	str	x8, [x19, #32]
LBB0_30:
	mov	w8, #1
	b	LBB0_35
LBB0_31:
Lloh87:
	adrp	x8, _FORCE_100M_HALF@GOTPAGE
Lloh88:
	ldr	x8, [x8, _FORCE_100M_HALF@GOTPAGEOFF]
	b	LBB0_33
LBB0_32:
Lloh89:
	adrp	x8, _FORCE_10M_HALF@GOTPAGE
Lloh90:
	ldr	x8, [x8, _FORCE_10M_HALF@GOTPAGEOFF]
LBB0_33:
	ldr	x8, [x8]
	str	x8, [x19, #32]
LBB0_34:
	mov	w8, #0
LBB0_35:
	str	w8, [x19, #8]
	mov	w8, #1
LBB0_36:
	str	w8, [x19, #12]
Lloh91:
	adrp	x8, _PHY_RESET@GOTPAGE
Lloh92:
	ldr	x8, [x8, _PHY_RESET@GOTPAGEOFF]
Lloh93:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_and_clear_bit
Lloh94:
	adrp	x21, _BMCR_RESET@GOTPAGE
Lloh95:
	ldr	x21, [x21, _BMCR_RESET@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w20
Lloh96:
	adrp	x22, _MII_BMCR@GOTPAGE
Lloh97:
	ldr	x22, [x22, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_r8152_mdio_write
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_39
; %bb.37:
	mov	w20, #49
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x19
	bl	_r8152_mdio_read
	ldr	w8, [x21]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w20, #0, #4, ne
	sub	w20, w20, #1
	b.ne	LBB0_38
LBB0_39:
	mov	w0, #0
LBB0_40:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh56
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BMCR_SPEED10,4,2               ; @BMCR_SPEED10
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_FORCE_10M_FULL,8,3             ; @FORCE_10M_FULL
	.comm	_FORCE_10M_HALF,8,3             ; @FORCE_10M_HALF
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_FORCE_100M_FULL,8,3            ; @FORCE_100M_FULL
	.comm	_FORCE_100M_HALF,8,3            ; @FORCE_100M_HALF
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_NWAY_1000M_FULL,8,3            ; @NWAY_1000M_FULL
	.comm	_RTL_ADVERTISED_10_HALF,4,2     ; @RTL_ADVERTISED_10_HALF
	.comm	_RTL_ADVERTISED_10_FULL,4,2     ; @RTL_ADVERTISED_10_FULL
	.comm	_RTL_ADVERTISED_100_HALF,4,2    ; @RTL_ADVERTISED_100_HALF
	.comm	_RTL_ADVERTISED_100_FULL,4,2    ; @RTL_ADVERTISED_100_FULL
	.comm	_RTL_ADVERTISED_1000_FULL,4,2   ; @RTL_ADVERTISED_1000_FULL
	.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	_NWAY_10M_HALF,8,3              ; @NWAY_10M_HALF
	.comm	_NWAY_10M_FULL,8,3              ; @NWAY_10M_FULL
	.comm	_NWAY_100M_HALF,8,3             ; @NWAY_100M_HALF
	.comm	_NWAY_100M_FULL,8,3             ; @NWAY_100M_FULL
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_ADVERTISE_1000FULL,4,2         ; @ADVERTISE_1000FULL
	.comm	_ADVERTISE_1000HALF,4,2         ; @ADVERTISE_1000HALF
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_PHY_RESET,4,2                  ; @PHY_RESET
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.no_dead_strip	_rtl8152_set_speed
.subsections_via_symbols
