	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc8514_config_init
_vsc8514_config_init:                   ## @vsc8514_config_init
	.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, %r14
	movq	(%rdi), %rdi
	movq	24(%r14), %r12
	movq	_ETH_TP_MDI_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	callq	_mutex_lock
	movq	_MSCC_EXT_PAGE_ACCESS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MSCC_PHY_PAGE_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	___phy_write
	movq	_MSCC_PHY_EXT_PHY_CNTL_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	___phy_read
	movl	%eax, %ebx
	movq	_PHY_CNTL_4_ADDR_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_MSCC_PHY_ACTIPHY_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	___phy_read
	movq	_PHY_ADDR_REVERSED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movslq	%ebx, %rcx
	movq	%rcx, %rdx
	negq	%rdx
	xorl	%esi, %esi
	testl	%eax, %eax
	cmovneq	%rcx, %rdx
	setne	%sil
	addq	8(%r14), %rdx
	movq	%rdx, 16(%r12)
	movq	%r14, %rdi
	callq	_vsc8584_is_pkg_init
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_vsc8514_config_pre_init
LBB0_2:
	movl	$1, (%r12)
	movl	(%r13), %esi
	movq	_MSCC_PHY_PAGE_EXTENDED_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_base_write
	movq	_MSCC_PHY_MAC_CFG_FASTLINK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_phy_base_read
	movq	_MAC_CFG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_MAC_CFG_QSGMII@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_phy_base_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.3:
	movq	_PROC_CMD_MCB_ACCESS_MAC_CONF@GOTPCREL(%rip), %rax
	movq	_PROC_CMD_RST_CONF_PORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_PROC_CMD_READ_MOD_WRITE_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_PROC_CMD_QSGMII_MAC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vsc8584_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.4:
	movq	_PHY_MCB_S6G_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_phy_update_mcb_s6g
	movq	_PHY_S6G_LCPLL_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_phy_update_mcb_s6g
	movq	_PHY_MCB_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_S6G_PLL5G_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1882648901, %ecx               ## imm = 0x7036F145
	callq	_vsc85xx_csr_ctrl_phy_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.5:
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_phy_commit_mcb_s6g
	movq	_PHY_MCB_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_S6G_PLL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PHY_S6G_PLL_ENA_OFFS_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$3, %edi
	shll	%cl, %edi
	movl	$3, %r15d
	movq	_PHY_S6G_PLL_FSM_CTRL_DATA_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$120, %eax
	shll	%cl, %eax
	orl	%edi, %eax
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_vsc85xx_csr_ctrl_phy_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.6:
	movq	_PHY_MCB_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_S6G_COMMON_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PHY_S6G_IF_MODE_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_vsc85xx_csr_ctrl_phy_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.7:
	movq	_PHY_MCB_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_S6G_MISC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_vsc85xx_csr_ctrl_phy_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.8:
	movq	_PHY_MCB_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_S6G_GPC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$768, %ecx                      ## imm = 0x300
	callq	_vsc85xx_csr_ctrl_phy_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_33:
	movq	(%r14), %rdi
	callq	_mutex_unlock
LBB0_34:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_PHY_S6G_DFT_CFG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_phy_commit_mcb_s6g
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_PROC_CMD_NCOMPLETED_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	addq	%rbx, %r15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	_PHY_MCB_S6G_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_phy_update_mcb_s6g
	movq	_PHY_MCB_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_S6G_PLL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_vsc85xx_csr_ctrl_phy_read
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ebx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$12, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_10
LBB0_14:
	movl	$12, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_16
## %bb.15:
	movq	(%r14), %rdi
	callq	_mutex_unlock
LBB0_22:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_16:
	movq	_PHY_MCB_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_S6G_MISC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_vsc85xx_csr_ctrl_phy_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.17:
	movq	_PHY_MCB_S6G_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_phy_commit_mcb_s6g
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_PROC_CMD_NCOMPLETED_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	addq	%rbx, %r15
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	_PHY_MCB_S6G_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_phy_update_mcb_s6g
	movq	_PHY_MCB_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_S6G_IB_STATUS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_vsc85xx_csr_ctrl_phy_read
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%eax, %ebx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$8, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_18
LBB0_21:
	movl	$8, %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	(%r14), %rdi
	callq	_mutex_unlock
	testl	%ebx, %r15d
	je	LBB0_22
## %bb.24:
	movl	(%r13), %esi
	movq	_MSCC_PHY_PAGE_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_34
## %bb.25:
	movq	_MSCC_PHY_EXT_PHY_CNTL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MEDIA_OP_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MEDIA_OP_MODE_COPPER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_phy_modify
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_34
## %bb.26:
	movq	%r14, %rdi
	callq	_genphy_soft_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_34
## %bb.27:
	cmpl	$0, 4(%r12)
	jle	LBB0_28
## %bb.29:
	xorl	%r15d, %r15d
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%r15,4), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_vsc85xx_led_cntl_set
	testl	%eax, %eax
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_31 Depth=1
	incq	%r15
	movslq	4(%r12), %rax
	xorl	%ebx, %ebx
	cmpq	%rax, %r15
	jl	LBB0_31
	jmp	LBB0_34
LBB0_11:
	movq	(%r14), %rdi
	callq	_mutex_unlock
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_23:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_28:
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_32:
	movl	%eax, %ebx
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_TP_MDI_AUTO,4,2            ## @ETH_TP_MDI_AUTO
	.comm	_MSCC_EXT_PAGE_ACCESS,4,2       ## @MSCC_EXT_PAGE_ACCESS
	.comm	_MSCC_PHY_PAGE_EXTENDED,4,2     ## @MSCC_PHY_PAGE_EXTENDED
	.comm	_MSCC_PHY_EXT_PHY_CNTL_4,4,2    ## @MSCC_PHY_EXT_PHY_CNTL_4
	.comm	_PHY_CNTL_4_ADDR_POS,4,2        ## @PHY_CNTL_4_ADDR_POS
	.comm	_MSCC_PHY_ACTIPHY_CNTL,4,2      ## @MSCC_PHY_ACTIPHY_CNTL
	.comm	_PHY_ADDR_REVERSED,4,2          ## @PHY_ADDR_REVERSED
	.comm	_MSCC_PHY_PAGE_EXTENDED_GPIO,4,2 ## @MSCC_PHY_PAGE_EXTENDED_GPIO
	.comm	_MSCC_PHY_MAC_CFG_FASTLINK,4,2  ## @MSCC_PHY_MAC_CFG_FASTLINK
	.comm	_MAC_CFG_MASK,4,2               ## @MAC_CFG_MASK
	.comm	_MAC_CFG_QSGMII,4,2             ## @MAC_CFG_QSGMII
	.comm	_PROC_CMD_MCB_ACCESS_MAC_CONF,4,2 ## @PROC_CMD_MCB_ACCESS_MAC_CONF
	.comm	_PROC_CMD_RST_CONF_PORT,4,2     ## @PROC_CMD_RST_CONF_PORT
	.comm	_PROC_CMD_READ_MOD_WRITE_PORT,4,2 ## @PROC_CMD_READ_MOD_WRITE_PORT
	.comm	_PROC_CMD_QSGMII_MAC,4,2        ## @PROC_CMD_QSGMII_MAC
	.comm	_PHY_MCB_S6G_CFG,4,2            ## @PHY_MCB_S6G_CFG
	.comm	_PHY_S6G_LCPLL_CFG,4,2          ## @PHY_S6G_LCPLL_CFG
	.comm	_PHY_MCB_TARGET,4,2             ## @PHY_MCB_TARGET
	.comm	_PHY_S6G_PLL5G_CFG0,4,2         ## @PHY_S6G_PLL5G_CFG0
	.comm	_PHY_S6G_PLL_CFG,4,2            ## @PHY_S6G_PLL_CFG
	.comm	_PHY_S6G_PLL_ENA_OFFS_POS,4,2   ## @PHY_S6G_PLL_ENA_OFFS_POS
	.comm	_PHY_S6G_PLL_FSM_CTRL_DATA_POS,4,2 ## @PHY_S6G_PLL_FSM_CTRL_DATA_POS
	.comm	_PHY_S6G_PLL_FSM_ENA_POS,4,2    ## @PHY_S6G_PLL_FSM_ENA_POS
	.comm	_PHY_S6G_COMMON_CFG,4,2         ## @PHY_S6G_COMMON_CFG
	.comm	_PHY_S6G_SYS_RST_POS,4,2        ## @PHY_S6G_SYS_RST_POS
	.comm	_PHY_S6G_ENA_LANE_POS,4,2       ## @PHY_S6G_ENA_LANE_POS
	.comm	_PHY_S6G_ENA_LOOP_POS,4,2       ## @PHY_S6G_ENA_LOOP_POS
	.comm	_PHY_S6G_QRATE_POS,4,2          ## @PHY_S6G_QRATE_POS
	.comm	_PHY_S6G_IF_MODE_POS,4,2        ## @PHY_S6G_IF_MODE_POS
	.comm	_PHY_S6G_MISC_CFG,4,2           ## @PHY_S6G_MISC_CFG
	.comm	_PHY_S6G_GPC_CFG,4,2            ## @PHY_S6G_GPC_CFG
	.comm	_PHY_S6G_DFT_CFG2,4,2           ## @PHY_S6G_DFT_CFG2
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_PROC_CMD_NCOMPLETED_TIMEOUT_MS,4,2 ## @PROC_CMD_NCOMPLETED_TIMEOUT_MS
	.comm	_PHY_S6G_PLL_STATUS,4,2         ## @PHY_S6G_PLL_STATUS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_PHY_S6G_IB_STATUS0,4,2         ## @PHY_S6G_IB_STATUS0
	.comm	_MSCC_PHY_PAGE_STANDARD,4,2     ## @MSCC_PHY_PAGE_STANDARD
	.comm	_MSCC_PHY_EXT_PHY_CNTL_1,4,2    ## @MSCC_PHY_EXT_PHY_CNTL_1
	.comm	_MEDIA_OP_MODE_MASK,4,2         ## @MEDIA_OP_MODE_MASK
	.comm	_MEDIA_OP_MODE_COPPER,4,2       ## @MEDIA_OP_MODE_COPPER
	.no_dead_strip	_vsc8514_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc8514_config_init
_vsc8514_config_init:                   ; @vsc8514_config_init
	.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
	ldr	x22, [x0, #24]
Lloh0:
	adrp	x8, _ETH_TP_MDI_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_TP_MDI_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	x0, [x0]
	bl	_mutex_lock
Lloh3:
	adrp	x23, _MSCC_EXT_PAGE_ACCESS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MSCC_EXT_PAGE_ACCESS@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x8, _MSCC_PHY_PAGE_EXTENDED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSCC_PHY_PAGE_EXTENDED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	___phy_write
Lloh8:
	adrp	x8, _MSCC_PHY_EXT_PHY_CNTL_4@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSCC_PHY_EXT_PHY_CNTL_4@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___phy_read
Lloh11:
	adrp	x8, _PHY_CNTL_4_ADDR_POS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_CNTL_4_ADDR_POS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	asr	w20, w0, w8
Lloh14:
	adrp	x8, _MSCC_PHY_ACTIPHY_CNTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSCC_PHY_ACTIPHY_CNTL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___phy_read
Lloh17:
	adrp	x8, _PHY_ADDR_REVERSED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PHY_ADDR_REVERSED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	sxtw	x10, w20
	tst	w8, w0
	cneg	x8, x10, eq
	add	x8, x9, x8
	str	x8, [x22, #16]
	cset	w1, ne
	mov	x0, x19
	bl	_vsc8584_is_pkg_init
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_vsc8514_config_pre_init
LBB0_2:
	mov	w8, #1
	str	w8, [x22]
	ldr	w1, [x23]
Lloh20:
	adrp	x8, _MSCC_PHY_PAGE_EXTENDED_GPIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSCC_PHY_PAGE_EXTENDED_GPIO@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_base_write
Lloh23:
	adrp	x20, _MSCC_PHY_MAC_CFG_FASTLINK@GOTPAGE
Lloh24:
	ldr	x20, [x20, _MSCC_PHY_MAC_CFG_FASTLINK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_base_read
Lloh25:
	adrp	x8, _MAC_CFG_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MAC_CFG_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh28:
	adrp	x9, _MAC_CFG_QSGMII@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MAC_CFG_QSGMII@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_base_write
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.3:
Lloh31:
	adrp	x8, _PROC_CMD_MCB_ACCESS_MAC_CONF@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PROC_CMD_MCB_ACCESS_MAC_CONF@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _PROC_CMD_RST_CONF_PORT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PROC_CMD_RST_CONF_PORT@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh37:
	adrp	x9, _PROC_CMD_READ_MOD_WRITE_PORT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PROC_CMD_READ_MOD_WRITE_PORT@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _PROC_CMD_QSGMII_MAC@GOTPAGE
Lloh41:
	ldr	x9, [x9, _PROC_CMD_QSGMII_MAC@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_vsc8584_cmd
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.4:
Lloh43:
	adrp	x24, _PHY_MCB_S6G_CFG@GOTPAGE
Lloh44:
	ldr	x24, [x24, _PHY_MCB_S6G_CFG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_update_mcb_s6g
Lloh45:
	adrp	x21, _PHY_S6G_LCPLL_CFG@GOTPAGE
Lloh46:
	ldr	x21, [x21, _PHY_S6G_LCPLL_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_update_mcb_s6g
Lloh47:
	adrp	x25, _PHY_MCB_TARGET@GOTPAGE
Lloh48:
	ldr	x25, [x25, _PHY_MCB_TARGET@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh49:
	adrp	x8, _PHY_S6G_PLL5G_CFG0@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PHY_S6G_PLL5G_CFG0@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #61765
	movk	w3, #28726, lsl #16
	bl	_vsc85xx_csr_ctrl_phy_write
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_commit_mcb_s6g
	ldr	w1, [x25]
Lloh52:
	adrp	x8, _PHY_S6G_PLL_CFG@GOTPAGE
Lloh53:
	ldr	x8, [x8, _PHY_S6G_PLL_CFG@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
Lloh55:
	adrp	x8, _PHY_S6G_PLL_ENA_OFFS_POS@GOTPAGE
Lloh56:
	ldr	x8, [x8, _PHY_S6G_PLL_ENA_OFFS_POS@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	mov	w21, #3
	lsl	w8, w21, w8
Lloh58:
	adrp	x9, _PHY_S6G_PLL_FSM_CTRL_DATA_POS@GOTPAGE
Lloh59:
	ldr	x9, [x9, _PHY_S6G_PLL_FSM_CTRL_DATA_POS@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	mov	w10, #120
	lsl	w9, w10, w9
	orr	w3, w9, w8
	mov	x0, x19
	bl	_vsc85xx_csr_ctrl_phy_write
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.6:
Lloh61:
	adrp	x8, _PHY_S6G_COMMON_CFG@GOTPAGE
Lloh62:
	ldr	x8, [x8, _PHY_S6G_COMMON_CFG@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh63:
	ldr	w2, [x8]
Lloh64:
	adrp	x8, _PHY_S6G_IF_MODE_POS@GOTPAGE
Lloh65:
	ldr	x8, [x8, _PHY_S6G_IF_MODE_POS@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	lsl	w3, w21, w8
	mov	x0, x19
	bl	_vsc85xx_csr_ctrl_phy_write
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w1, [x25]
Lloh67:
	adrp	x27, _PHY_S6G_MISC_CFG@GOTPAGE
Lloh68:
	ldr	x27, [x27, _PHY_S6G_MISC_CFG@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x19
	mov	w3, #1
	bl	_vsc85xx_csr_ctrl_phy_write
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	w1, [x25]
Lloh69:
	adrp	x8, _PHY_S6G_GPC_CFG@GOTPAGE
Lloh70:
	ldr	x8, [x8, _PHY_S6G_GPC_CFG@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #768
	bl	_vsc85xx_csr_ctrl_phy_write
	mov	x20, x0
	cbz	w0, LBB0_11
LBB0_9:
	ldr	x0, [x19]
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x20
	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
LBB0_11:
Lloh72:
	adrp	x8, _PHY_S6G_DFT_CFG2@GOTPAGE
Lloh73:
	ldr	x8, [x8, _PHY_S6G_DFT_CFG2@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_commit_mcb_s6g
Lloh75:
	adrp	x26, _jiffies@GOTPAGE
Lloh76:
	ldr	x26, [x26, _jiffies@GOTPAGEOFF]
	ldr	x20, [x26]
Lloh77:
	adrp	x8, _PROC_CMD_NCOMPLETED_TIMEOUT_MS@GOTPAGE
Lloh78:
	ldr	x8, [x8, _PROC_CMD_NCOMPLETED_TIMEOUT_MS@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x20, x0, x20
Lloh80:
	adrp	x28, _PHY_S6G_PLL_STATUS@GOTPAGE
Lloh81:
	ldr	x28, [x28, _PHY_S6G_PLL_STATUS@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_update_mcb_s6g
	ldr	w1, [x25]
	ldr	w2, [x28]
	mov	x0, x19
	bl	_vsc85xx_csr_ctrl_phy_read
	cmn	w0, #1
	b.eq	LBB0_31
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x0
	ldr	x0, [x26]
	mov	x1, x20
	bl	_time_before
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #12
	bl	_BIT
	tst	w0, w21
	b.ne	LBB0_12
LBB0_15:
	mov	w0, #12
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_18
; %bb.16:
	ldr	x0, [x19]
	bl	_mutex_unlock
LBB0_17:
Lloh82:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh83:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_32
LBB0_18:
	ldr	w1, [x25]
	ldr	w2, [x27]
	mov	x0, x19
	mov	w3, #0
	bl	_vsc85xx_csr_ctrl_phy_write
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.19:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_commit_mcb_s6g
	ldr	x20, [x26]
Lloh84:
	adrp	x8, _PROC_CMD_NCOMPLETED_TIMEOUT_MS@GOTPAGE
Lloh85:
	ldr	x8, [x8, _PROC_CMD_NCOMPLETED_TIMEOUT_MS@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x20, x0, x20
Lloh87:
	adrp	x27, _PHY_S6G_IB_STATUS0@GOTPAGE
Lloh88:
	ldr	x27, [x27, _PHY_S6G_IB_STATUS0@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_update_mcb_s6g
	ldr	w1, [x25]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_vsc85xx_csr_ctrl_phy_read
	cmn	w0, #1
	b.eq	LBB0_31
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x21, x0
	ldr	x0, [x26]
	mov	x1, x20
	bl	_time_before
	cbz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w0, #8
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_20
LBB0_23:
	mov	w0, #8
	bl	_BIT
	and	w20, w0, w21
	ldr	x0, [x19]
	bl	_mutex_unlock
	cbz	w20, LBB0_17
; %bb.24:
	ldr	w1, [x23]
Lloh89:
	adrp	x8, _MSCC_PHY_PAGE_STANDARD@GOTPAGE
Lloh90:
	ldr	x8, [x8, _MSCC_PHY_PAGE_STANDARD@GOTPAGEOFF]
Lloh91:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.25:
Lloh92:
	adrp	x8, _MSCC_PHY_EXT_PHY_CNTL_1@GOTPAGE
Lloh93:
	ldr	x8, [x8, _MSCC_PHY_EXT_PHY_CNTL_1@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
Lloh95:
	adrp	x8, _MEDIA_OP_MODE_MASK@GOTPAGE
Lloh96:
	ldr	x8, [x8, _MEDIA_OP_MODE_MASK@GOTPAGEOFF]
Lloh97:
	ldr	w2, [x8]
Lloh98:
	adrp	x8, _MEDIA_OP_MODE_COPPER@GOTPAGE
Lloh99:
	ldr	x8, [x8, _MEDIA_OP_MODE_COPPER@GOTPAGEOFF]
Lloh100:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_phy_modify
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.26:
	mov	x0, x19
	bl	_genphy_soft_reset
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.27:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.28:
	mov	x21, #0
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_vsc85xx_led_cntl_set
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22, #4]
	cmp	x21, x8
	b.lt	LBB0_29
	b	LBB0_10
LBB0_31:
	ldr	x0, [x19]
	bl	_mutex_unlock
Lloh101:
	adrp	x8, _EIO@GOTPAGE
Lloh102:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_32:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_33:
	mov	w20, #0
	b	LBB0_10
	.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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh101, Lloh102
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_TP_MDI_AUTO,4,2            ; @ETH_TP_MDI_AUTO
	.comm	_MSCC_EXT_PAGE_ACCESS,4,2       ; @MSCC_EXT_PAGE_ACCESS
	.comm	_MSCC_PHY_PAGE_EXTENDED,4,2     ; @MSCC_PHY_PAGE_EXTENDED
	.comm	_MSCC_PHY_EXT_PHY_CNTL_4,4,2    ; @MSCC_PHY_EXT_PHY_CNTL_4
	.comm	_PHY_CNTL_4_ADDR_POS,4,2        ; @PHY_CNTL_4_ADDR_POS
	.comm	_MSCC_PHY_ACTIPHY_CNTL,4,2      ; @MSCC_PHY_ACTIPHY_CNTL
	.comm	_PHY_ADDR_REVERSED,4,2          ; @PHY_ADDR_REVERSED
	.comm	_MSCC_PHY_PAGE_EXTENDED_GPIO,4,2 ; @MSCC_PHY_PAGE_EXTENDED_GPIO
	.comm	_MSCC_PHY_MAC_CFG_FASTLINK,4,2  ; @MSCC_PHY_MAC_CFG_FASTLINK
	.comm	_MAC_CFG_MASK,4,2               ; @MAC_CFG_MASK
	.comm	_MAC_CFG_QSGMII,4,2             ; @MAC_CFG_QSGMII
	.comm	_PROC_CMD_MCB_ACCESS_MAC_CONF,4,2 ; @PROC_CMD_MCB_ACCESS_MAC_CONF
	.comm	_PROC_CMD_RST_CONF_PORT,4,2     ; @PROC_CMD_RST_CONF_PORT
	.comm	_PROC_CMD_READ_MOD_WRITE_PORT,4,2 ; @PROC_CMD_READ_MOD_WRITE_PORT
	.comm	_PROC_CMD_QSGMII_MAC,4,2        ; @PROC_CMD_QSGMII_MAC
	.comm	_PHY_MCB_S6G_CFG,4,2            ; @PHY_MCB_S6G_CFG
	.comm	_PHY_S6G_LCPLL_CFG,4,2          ; @PHY_S6G_LCPLL_CFG
	.comm	_PHY_MCB_TARGET,4,2             ; @PHY_MCB_TARGET
	.comm	_PHY_S6G_PLL5G_CFG0,4,2         ; @PHY_S6G_PLL5G_CFG0
	.comm	_PHY_S6G_PLL_CFG,4,2            ; @PHY_S6G_PLL_CFG
	.comm	_PHY_S6G_PLL_ENA_OFFS_POS,4,2   ; @PHY_S6G_PLL_ENA_OFFS_POS
	.comm	_PHY_S6G_PLL_FSM_CTRL_DATA_POS,4,2 ; @PHY_S6G_PLL_FSM_CTRL_DATA_POS
	.comm	_PHY_S6G_PLL_FSM_ENA_POS,4,2    ; @PHY_S6G_PLL_FSM_ENA_POS
	.comm	_PHY_S6G_COMMON_CFG,4,2         ; @PHY_S6G_COMMON_CFG
	.comm	_PHY_S6G_SYS_RST_POS,4,2        ; @PHY_S6G_SYS_RST_POS
	.comm	_PHY_S6G_ENA_LANE_POS,4,2       ; @PHY_S6G_ENA_LANE_POS
	.comm	_PHY_S6G_ENA_LOOP_POS,4,2       ; @PHY_S6G_ENA_LOOP_POS
	.comm	_PHY_S6G_QRATE_POS,4,2          ; @PHY_S6G_QRATE_POS
	.comm	_PHY_S6G_IF_MODE_POS,4,2        ; @PHY_S6G_IF_MODE_POS
	.comm	_PHY_S6G_MISC_CFG,4,2           ; @PHY_S6G_MISC_CFG
	.comm	_PHY_S6G_GPC_CFG,4,2            ; @PHY_S6G_GPC_CFG
	.comm	_PHY_S6G_DFT_CFG2,4,2           ; @PHY_S6G_DFT_CFG2
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_PROC_CMD_NCOMPLETED_TIMEOUT_MS,4,2 ; @PROC_CMD_NCOMPLETED_TIMEOUT_MS
	.comm	_PHY_S6G_PLL_STATUS,4,2         ; @PHY_S6G_PLL_STATUS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_PHY_S6G_IB_STATUS0,4,2         ; @PHY_S6G_IB_STATUS0
	.comm	_MSCC_PHY_PAGE_STANDARD,4,2     ; @MSCC_PHY_PAGE_STANDARD
	.comm	_MSCC_PHY_EXT_PHY_CNTL_1,4,2    ; @MSCC_PHY_EXT_PHY_CNTL_1
	.comm	_MEDIA_OP_MODE_MASK,4,2         ; @MEDIA_OP_MODE_MASK
	.comm	_MEDIA_OP_MODE_COPPER,4,2       ; @MEDIA_OP_MODE_COPPER
	.no_dead_strip	_vsc8514_config_init
.subsections_via_symbols
