	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_get_link_ksettings
_cas_get_link_ksettings:                ## @cas_get_link_ksettings
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rax
	movq	_CAS_FLAG_1000MB_CAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rcx
	andl	(%r12), %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_2:
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	12(%r12), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	4(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	36(%r12), %edi
	callq	_CAS_PHY_MII
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_PORT_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	32(%r12), %eax
	movl	%eax, 28(%r15)
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_MII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_SUPPORTED_MII@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	cmpq	$0, 24(%r12)
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_cas_mif_poll
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cas_phy_read
	movl	%eax, %r13d
	leaq	-68(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-84(%rbp), %rcx
	movq	%r12, %rdi
	callq	_cas_read_mii_link_mode
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_cas_mif_poll
	jmp	LBB0_8
LBB0_6:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	$0, 28(%r15)
	movq	_SUPPORTED_FIBRE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ADVERTISED_FIBRE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpq	$0, 24(%r12)
	je	LBB0_4
## %bb.7:
	movq	_REG_PCS_MII_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r12), %rdi
	callq	_readl
	movl	%eax, %r13d
	leaq	-68(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-84(%rbp), %rcx
	movq	%r12, %rdi
	callq	_cas_read_pcs_link_mode
	jmp	LBB0_8
LBB0_4:
	xorl	%r13d, %r13d
LBB0_8:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	orl	%eax, %ebx
	callq	_spin_unlock_irqrestore
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r13d, %r10d
	je	LBB0_16
## %bb.9:
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
	movl	-64(%rbp), %ecx
	cmpl	$10, %ecx
	jne	LBB0_11
## %bb.10:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_15
LBB0_16:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
	movq	_CAS_BMCR_SPEED1000@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_18
## %bb.17:
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_22
LBB0_11:
	cmpl	$1000, %ecx                     ## imm = 0x3E8
	jne	LBB0_12
## %bb.13:
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_12:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	(%rcx), %rcx
LBB0_15:
	movq	%rcx, 16(%r15)
	cmpl	$0, -68(%rbp)
	jmp	LBB0_23
LBB0_18:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	jne	LBB0_19
## %bb.20:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_19:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
LBB0_21:
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	(%rcx), %rcx
LBB0_22:
	movq	%rcx, 16(%r15)
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
LBB0_23:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdi, %rcx
	cmoveq	%rdx, %rcx
	movl	%ecx, 8(%r15)
	movq	_link_up@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_33
## %bb.24:
	movl	8(%r12), %ecx
	testl	%r10d, %ecx
	je	LBB0_26
## %bb.25:
	movq	$0, 16(%r15)
	movl	$255, %edi
	jmp	LBB0_32
LBB0_26:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_28
## %bb.27:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_28:
	movq	_CAS_BMCR_SPEED1000@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_31
## %bb.29:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
LBB0_30:
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_31:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	cmovel	%edx, %edi
LBB0_32:
	movl	%edi, 8(%r15)
LBB0_33:
	testl	%r8d, %r8d
	cmovel	%r8d, %esi
	orl	%r9d, %esi
	orl	%r14d, %esi
	movl	4(%r15), %edi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_link_up,4,2                    ## @link_up
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_CAS_FLAG_1000MB_CAP,4,2        ## @CAS_FLAG_1000MB_CAP
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_PORT_MII,4,2                   ## @PORT_MII
	.comm	_ADVERTISED_TP,4,2              ## @ADVERTISED_TP
	.comm	_ADVERTISED_MII,4,2             ## @ADVERTISED_MII
	.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	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_SUPPORTED_MII,4,2              ## @SUPPORTED_MII
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_SUPPORTED_FIBRE,4,2            ## @SUPPORTED_FIBRE
	.comm	_ADVERTISED_FIBRE,4,2           ## @ADVERTISED_FIBRE
	.comm	_REG_PCS_MII_CTRL,8,3           ## @REG_PCS_MII_CTRL
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_CAS_BMCR_SPEED1000,4,2         ## @CAS_BMCR_SPEED1000
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.no_dead_strip	_cas_get_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_get_link_ksettings
_cas_get_link_ksettings:                ; @cas_get_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _SUPPORTED_Autoneg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _CAS_FLAG_1000MB_CAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CAS_FLAG_1000MB_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ands	w26, w9, w8
Lloh6:
	adrp	x8, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
Lloh9:
	adrp	x8, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	csel	w21, wzr, w8, eq
	add	x22, x0, #12
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w23, [x20, #4]
	ldr	w0, [x20, #36]
	bl	_CAS_PHY_MII
	str	w23, [sp]                       ; 4-byte Folded Spill
	cbz	x0, LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _PORT_MII@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PORT_MII@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20, #32]
	stp	w9, w8, [x19, #28]
Lloh15:
	adrp	x8, _ADVERTISED_TP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADVERTISED_TP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _ADVERTISED_MII@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ADVERTISED_MII@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w24, w8, w9
Lloh33:
	adrp	x8, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh39:
	adrp	x9, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh40:
	ldr	x9, [x9, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	adrp	x10, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh43:
	ldr	x10, [x10, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh44:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh45:
	adrp	x9, _SUPPORTED_TP@GOTPAGE
Lloh46:
	ldr	x9, [x9, _SUPPORTED_TP@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh48:
	adrp	x9, _SUPPORTED_MII@GOTPAGE
Lloh49:
	ldr	x9, [x9, _SUPPORTED_MII@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w28, w8, w9
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	bl	_cas_mif_poll
Lloh51:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_cas_phy_read
	mov	x23, x0
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	bl	_cas_read_mii_link_mode
	mov	x0, x20
	mov	w1, #1
	bl	_cas_mif_poll
	b	LBB0_6
LBB0_3:
Lloh54:
	adrp	x8, _PORT_FIBRE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PORT_FIBRE@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x9, _SUPPORTED_FIBRE@GOTPAGE
Lloh58:
	ldr	x9, [x9, _SUPPORTED_FIBRE@GOTPAGEOFF]
	stp	wzr, w8, [x19, #28]
Lloh59:
	ldr	w28, [x9]
Lloh60:
	adrp	x8, _ADVERTISED_FIBRE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ADVERTISED_FIBRE@GOTPAGEOFF]
Lloh62:
	ldr	w24, [x8]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x20, #16]
Lloh63:
	adrp	x9, _REG_PCS_MII_CTRL@GOTPAGE
Lloh64:
	ldr	x9, [x9, _REG_PCS_MII_CTRL@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x23, x0
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	bl	_cas_read_pcs_link_mode
	b	LBB0_6
LBB0_5:
	mov	w23, #0
LBB0_6:
	orr	w21, w24, w21
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh66:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_9
; %bb.7:
Lloh69:
	adrp	x9, _ADVERTISED_Autoneg@GOTPAGE
Lloh70:
	ldr	x9, [x9, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	orr	w21, w9, w21
Lloh72:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh73:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	str	w9, [x19, #24]
	ldr	w9, [sp, #8]
	cmp	w9, #10
	b.ne	LBB0_11
; %bb.8:
Lloh75:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh76:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh77:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh78:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	str	w9, [x19, #24]
Lloh80:
	adrp	x9, _CAS_BMCR_SPEED1000@GOTPAGE
Lloh81:
	ldr	x9, [x9, _CAS_BMCR_SPEED1000@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_13
; %bb.10:
Lloh83:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh84:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh85:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh86:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh87:
	adrp	x11, _SPEED_100@GOTPAGE
Lloh88:
	ldr	x11, [x11, _SPEED_100@GOTPAGEOFF]
	cmp	w9, #1000
	csel	x9, x10, x11, eq
LBB0_12:
	ldr	x9, [x9]
	ldr	w12, [sp]                       ; 4-byte Folded Reload
	str	x9, [x19, #16]
	ldr	w11, [sp, #12]
Lloh89:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh90:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh91:
	ldr	x9, [x9]
Lloh92:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh93:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
Lloh94:
	ldr	x10, [x10]
	cmp	w11, #0
	csel	x11, x10, x9, eq
	b	LBB0_15
LBB0_13:
Lloh95:
	adrp	x9, _BMCR_SPEED100@GOTPAGE
Lloh96:
	ldr	x9, [x9, _BMCR_SPEED100@GOTPAGEOFF]
Lloh97:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh98:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh99:
	ldr	w9, [x9]
Lloh100:
	adrp	x11, _SPEED_10@GOTPAGE
Lloh101:
	ldr	x11, [x11, _SPEED_10@GOTPAGEOFF]
	tst	w9, w23
	csel	x9, x11, x10, eq
LBB0_14:
	ldr	x9, [x9]
	str	x9, [x19, #16]
Lloh102:
	adrp	x9, _BMCR_FULLDPLX@GOTPAGE
Lloh103:
	ldr	x9, [x9, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh104:
	ldr	w11, [x9]
Lloh105:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh106:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh107:
	ldr	x9, [x9]
Lloh108:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh109:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
Lloh110:
	ldr	x10, [x10]
	tst	w11, w23
	csel	x11, x10, x9, eq
	ldr	w12, [sp]                       ; 4-byte Folded Reload
LBB0_15:
	str	w11, [x19, #8]
Lloh111:
	adrp	x11, _link_up@GOTPAGE
Lloh112:
	ldr	x11, [x11, _link_up@GOTPAGEOFF]
Lloh113:
	ldr	w11, [x11]
	cmp	w12, w11
	b.eq	LBB0_25
; %bb.16:
	ldr	w11, [x20, #8]
	tst	w11, w8
	b.eq	LBB0_18
; %bb.17:
	str	xzr, [x19, #16]
	mov	w8, #255
	b	LBB0_24
LBB0_18:
Lloh114:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh115:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
Lloh116:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh117:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh118:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh119:
	ldr	w8, [x8]
	tst	w8, w11
	b.eq	LBB0_20
; %bb.19:
Lloh120:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh121:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
Lloh122:
	adrp	x8, _CAS_BMCR_SPEED1000@GOTPAGE
Lloh123:
	ldr	x8, [x8, _CAS_BMCR_SPEED1000@GOTPAGEOFF]
Lloh124:
	ldr	w8, [x8]
	tst	w8, w11
	b.eq	LBB0_23
; %bb.21:
Lloh125:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh126:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
LBB0_22:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_23:
Lloh127:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh128:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh129:
	ldr	w8, [x8]
	tst	w8, w11
	csel	w8, w10, w9, eq
LBB0_24:
	str	w8, [x19, #8]
LBB0_25:
	cmp	w26, #0
	csel	w8, wzr, w27, eq
	orr	w8, w8, w25
	orr	w1, w8, w28
	ldr	w0, [x19, #4]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19]
	mov	x1, x21
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh99
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGot	Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGot	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.cfi_endproc
                                        ; -- End function
	.comm	_link_up,4,2                    ; @link_up
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_CAS_FLAG_1000MB_CAP,4,2        ; @CAS_FLAG_1000MB_CAP
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_PORT_MII,4,2                   ; @PORT_MII
	.comm	_ADVERTISED_TP,4,2              ; @ADVERTISED_TP
	.comm	_ADVERTISED_MII,4,2             ; @ADVERTISED_MII
	.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	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_SUPPORTED_MII,4,2              ; @SUPPORTED_MII
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_SUPPORTED_FIBRE,4,2            ; @SUPPORTED_FIBRE
	.comm	_ADVERTISED_FIBRE,4,2           ; @ADVERTISED_FIBRE
	.comm	_REG_PCS_MII_CTRL,8,3           ; @REG_PCS_MII_CTRL
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_CAS_BMCR_SPEED1000,4,2         ; @CAS_BMCR_SPEED1000
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.no_dead_strip	_cas_get_link_ksettings
.subsections_via_symbols
