	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc8584_config_init
_vsc8584_config_init:                   ## @vsc8584_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, %r15
	movq	16(%rdi), %rdi
	movq	48(%r15), %r12
	movq	_ETH_TP_MDI_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	callq	_mutex_lock
	movq	16(%r15), %rdi
	movq	24(%r15), %rsi
	movq	_MSCC_EXT_PAGE_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MSCC_PHY_PAGE_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	___mdiobus_write
	movq	16(%r15), %rdi
	movq	24(%r15), %rsi
	movq	_MSCC_PHY_EXT_PHY_CNTL_4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	___mdiobus_read
	movl	%eax, %r14d
	movq	_PHY_CNTL_4_ADDR_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movq	16(%r15), %rdi
	movq	24(%r15), %rsi
	movq	_MSCC_PHY_ACTIPHY_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	___mdiobus_read
	movq	_PHY_ADDR_REVERSED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movslq	%r14d, %rcx
	movq	%rcx, %rdx
	negq	%rdx
	xorl	%esi, %esi
	testl	%eax, %eax
	cmovneq	%rcx, %rdx
	setne	%sil
	addq	24(%r15), %rdx
	movq	%rdx, 16(%r12)
	movq	%r15, %rdi
	callq	_vsc8584_is_pkg_init
	testl	%eax, %eax
	je	LBB0_7
LBB0_1:
	movl	$1, (%r12)
	movq	_MSCC_EXT_PAGE_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSCC_PHY_PAGE_EXTENDED_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_base_write
	movq	_MSCC_PHY_MAC_CFG_FASTLINK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_base_read
	movq	_MAC_CFG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	8(%r15), %rax
	movq	_PHY_INTERFACE_MODE_QSGMII@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.2:
	movq	_MAC_CFG_QSGMII@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_MAC_CFG_SGMII@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_base_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.5:
	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	8(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.6:
	movq	_PROC_CMD_QSGMII_MAC@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	32(%r15), %rax
	movl	(%rax), %eax
	movl	(%r15), %ecx
	andl	%eax, %ecx
	movq	_PHY_ID_VSC8574@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	cmpl	%edx, %ecx
	jne	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_vsc8574_config_pre_init
	jmp	LBB0_9
LBB0_10:
	movq	_PHY_ID_VSC8584@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	cmpl	%eax, %ecx
	jne	LBB0_21
## %bb.11:
	movq	%r15, %rdi
	callq	_vsc8584_config_pre_init
LBB0_9:
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_22
	jmp	LBB0_1
LBB0_12:
	movq	_PROC_CMD_SGMII_MAC@GOTPCREL(%rip), %rax
LBB0_13:
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vsc8584_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.14:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movq	_PROC_CMD_FIBER_MEDIA_CONF@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	%r14d, %edi
	callq	_PROC_CMD_FIBER_PORT
	orl	%eax, %ebx
	movq	_PROC_CMD_FIBER_DISABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_PROC_CMD_READ_MOD_WRITE_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_PROC_CMD_RST_CONF_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_PROC_CMD_FIBER_100BASE_FX@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vsc8584_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.15:
	movl	(%r13), %ebx
	movl	%r14d, %edi
	callq	_PROC_CMD_FIBER_PORT
	orl	%eax, %ebx
	movq	_PROC_CMD_FIBER_DISABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_PROC_CMD_READ_MOD_WRITE_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_PROC_CMD_RST_CONF_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_PROC_CMD_FIBER_1000BASE_X@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vsc8584_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.16:
	movq	16(%r15), %rdi
	callq	_mutex_unlock
	movq	_MSCC_EXT_PAGE_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSCC_PHY_PAGE_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_write
	movq	_MSCC_PHY_EXT_PHY_CNTL_1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_read
	movq	_MEDIA_OP_MODE_MASK@GOTPCREL(%rip), %rcx
	movq	_VSC8584_MAC_IF_SELECTION_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_MEDIA_OP_MODE_COPPER@GOTPCREL(%rip), %rax
	movq	_VSC8584_MAC_IF_SELECTION_SGMII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_VSC8584_MAC_IF_SELECTION_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	(%rax), %edx
	orl	%esi, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_write
	movq	%r15, %rdi
	callq	_genphy_soft_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.17:
	cmpl	$0, 4(%r12)
	jle	LBB0_24
## %bb.18:
	xorl	%r14d, %r14d
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_vsc85xx_led_cntl_set
	testl	%eax, %eax
	jne	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%r14
	movslq	4(%r12), %rax
	xorl	%ebx, %ebx
	cmpq	%rax, %r14
	jl	LBB0_19
	jmp	LBB0_23
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_1
LBB0_22:
	movq	16(%r15), %rdi
	callq	_mutex_unlock
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_25:
	movl	%eax, %ebx
	jmp	LBB0_23
	.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	_PHY_ID_VSC8574,4,2             ## @PHY_ID_VSC8574
	.comm	_PHY_ID_VSC8584,4,2             ## @PHY_ID_VSC8584
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	_PHY_INTERFACE_MODE_QSGMII,8,3  ## @PHY_INTERFACE_MODE_QSGMII
	.comm	_MAC_CFG_QSGMII,4,2             ## @MAC_CFG_QSGMII
	.comm	_MAC_CFG_SGMII,4,2              ## @MAC_CFG_SGMII
	.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	_PROC_CMD_SGMII_MAC,4,2         ## @PROC_CMD_SGMII_MAC
	.comm	_PROC_CMD_FIBER_MEDIA_CONF,4,2  ## @PROC_CMD_FIBER_MEDIA_CONF
	.comm	_PROC_CMD_FIBER_DISABLE,4,2     ## @PROC_CMD_FIBER_DISABLE
	.comm	_PROC_CMD_FIBER_100BASE_FX,4,2  ## @PROC_CMD_FIBER_100BASE_FX
	.comm	_PROC_CMD_FIBER_1000BASE_X,4,2  ## @PROC_CMD_FIBER_1000BASE_X
	.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	_VSC8584_MAC_IF_SELECTION_MASK,4,2 ## @VSC8584_MAC_IF_SELECTION_MASK
	.comm	_MEDIA_OP_MODE_COPPER,4,2       ## @MEDIA_OP_MODE_COPPER
	.comm	_VSC8584_MAC_IF_SELECTION_SGMII,4,2 ## @VSC8584_MAC_IF_SELECTION_SGMII
	.comm	_VSC8584_MAC_IF_SELECTION_POS,4,2 ## @VSC8584_MAC_IF_SELECTION_POS
	.no_dead_strip	_vsc8584_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc8584_config_init
_vsc8584_config_init:                   ; @vsc8584_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, #48]
Lloh0:
	adrp	x8, _ETH_TP_MDI_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_TP_MDI_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	ldr	x0, [x0, #16]
	bl	_mutex_lock
	ldp	x0, x1, [x19, #16]
Lloh3:
	adrp	x23, _MSCC_EXT_PAGE_ACCESS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MSCC_EXT_PAGE_ACCESS@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh5:
	adrp	x8, _MSCC_PHY_PAGE_EXTENDED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSCC_PHY_PAGE_EXTENDED@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	___mdiobus_write
	ldp	x0, x1, [x19, #16]
Lloh8:
	adrp	x8, _MSCC_PHY_EXT_PHY_CNTL_4@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSCC_PHY_EXT_PHY_CNTL_4@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	___mdiobus_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
	ldp	x0, x1, [x19, #16]
Lloh14:
	adrp	x8, _MSCC_PHY_ACTIPHY_CNTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSCC_PHY_ACTIPHY_CNTL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	___mdiobus_read
Lloh17:
	adrp	x8, _PHY_ADDR_REVERSED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PHY_ADDR_REVERSED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [x19, #24]
	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
	cbz	w0, LBB0_10
LBB0_1:
	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	x21, _MSCC_PHY_MAC_CFG_FASTLINK@GOTPAGE
Lloh24:
	ldr	x21, [x21, _MSCC_PHY_MAC_CFG_FASTLINK@GOTPAGEOFF]
	ldr	w1, [x21]
	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
	ldr	x9, [x19, #8]
Lloh28:
	adrp	x26, _PHY_INTERFACE_MODE_QSGMII@GOTPAGE
Lloh29:
	ldr	x26, [x26, _PHY_INTERFACE_MODE_QSGMII@GOTPAGEOFF]
Lloh30:
	adrp	x10, _MAC_CFG_QSGMII@GOTPAGE
Lloh31:
	ldr	x10, [x10, _MAC_CFG_QSGMII@GOTPAGEOFF]
Lloh32:
	adrp	x11, _MAC_CFG_SGMII@GOTPAGE
Lloh33:
	ldr	x11, [x11, _MAC_CFG_SGMII@GOTPAGEOFF]
	ldr	x12, [x26]
	cmp	x9, x12
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_base_write
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.2:
Lloh34:
	adrp	x8, _PROC_CMD_MCB_ACCESS_MAC_CONF@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PROC_CMD_MCB_ACCESS_MAC_CONF@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x24, _PROC_CMD_RST_CONF_PORT@GOTPAGE
Lloh38:
	ldr	x24, [x24, _PROC_CMD_RST_CONF_PORT@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh39:
	adrp	x25, _PROC_CMD_READ_MOD_WRITE_PORT@GOTPAGE
Lloh40:
	ldr	x25, [x25, _PROC_CMD_READ_MOD_WRITE_PORT@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	x9, [x19, #8]
	ldr	x10, [x26]
Lloh41:
	adrp	x11, _PROC_CMD_QSGMII_MAC@GOTPAGE
Lloh42:
	ldr	x11, [x11, _PROC_CMD_QSGMII_MAC@GOTPAGEOFF]
Lloh43:
	adrp	x12, _PROC_CMD_SGMII_MAC@GOTPAGE
Lloh44:
	ldr	x12, [x12, _PROC_CMD_SGMII_MAC@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_vsc8584_cmd
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.3:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
Lloh45:
	adrp	x26, _PROC_CMD_FIBER_MEDIA_CONF@GOTPAGE
Lloh46:
	ldr	x26, [x26, _PROC_CMD_FIBER_MEDIA_CONF@GOTPAGEOFF]
	ldr	w21, [x26]
	mov	x0, x20
	bl	_PROC_CMD_FIBER_PORT
	orr	w8, w0, w21
Lloh47:
	adrp	x27, _PROC_CMD_FIBER_DISABLE@GOTPAGE
Lloh48:
	ldr	x27, [x27, _PROC_CMD_FIBER_DISABLE@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh49:
	adrp	x9, _PROC_CMD_FIBER_100BASE_FX@GOTPAGE
Lloh50:
	ldr	x9, [x9, _PROC_CMD_FIBER_100BASE_FX@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_vsc8584_cmd
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.4:
	ldr	w21, [x26]
	mov	x0, x20
	bl	_PROC_CMD_FIBER_PORT
	orr	w8, w0, w21
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh52:
	adrp	x9, _PROC_CMD_FIBER_1000BASE_X@GOTPAGE
Lloh53:
	ldr	x9, [x9, _PROC_CMD_FIBER_1000BASE_X@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_vsc8584_cmd
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.5:
	ldr	x0, [x19, #16]
	bl	_mutex_unlock
	ldr	w1, [x23]
Lloh55:
	adrp	x8, _MSCC_PHY_PAGE_STANDARD@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MSCC_PHY_PAGE_STANDARD@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
Lloh58:
	adrp	x20, _MSCC_PHY_EXT_PHY_CNTL_1@GOTPAGE
Lloh59:
	ldr	x20, [x20, _MSCC_PHY_EXT_PHY_CNTL_1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_read
Lloh60:
	adrp	x8, _MEDIA_OP_MODE_MASK@GOTPAGE
Lloh61:
	ldr	x8, [x8, _MEDIA_OP_MODE_MASK@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _VSC8584_MAC_IF_SELECTION_MASK@GOTPAGE
Lloh64:
	ldr	x9, [x9, _VSC8584_MAC_IF_SELECTION_MASK@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh66:
	adrp	x9, _MEDIA_OP_MODE_COPPER@GOTPAGE
Lloh67:
	ldr	x9, [x9, _MEDIA_OP_MODE_COPPER@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh68:
	ldr	w9, [x9]
Lloh69:
	adrp	x10, _VSC8584_MAC_IF_SELECTION_SGMII@GOTPAGE
Lloh70:
	ldr	x10, [x10, _VSC8584_MAC_IF_SELECTION_SGMII@GOTPAGEOFF]
Lloh71:
	adrp	x11, _VSC8584_MAC_IF_SELECTION_POS@GOTPAGE
Lloh72:
	ldr	x11, [x11, _VSC8584_MAC_IF_SELECTION_POS@GOTPAGEOFF]
Lloh73:
	ldr	w10, [x10]
Lloh74:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w8, w8, w9
	orr	w2, w8, w10
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_write
	mov	x0, x19
	bl	_genphy_soft_reset
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.6:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_vsc85xx_led_cntl_set
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x22, #4]
	cmp	x20, x8
	b.lt	LBB0_8
	b	LBB0_16
LBB0_10:
	ldr	w9, [x19]
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	and	w9, w8, w9
Lloh75:
	adrp	x10, _PHY_ID_VSC8574@GOTPAGE
Lloh76:
	ldr	x10, [x10, _PHY_ID_VSC8574@GOTPAGEOFF]
Lloh77:
	ldr	w10, [x10]
	and	w10, w10, w8
	cmp	w9, w10
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_vsc8574_config_pre_init
	mov	x21, x0
	cbnz	w21, LBB0_15
	b	LBB0_1
LBB0_12:
Lloh78:
	adrp	x10, _PHY_ID_VSC8584@GOTPAGE
Lloh79:
	ldr	x10, [x10, _PHY_ID_VSC8584@GOTPAGEOFF]
Lloh80:
	ldr	w10, [x10]
	and	w8, w10, w8
	cmp	w9, w8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_vsc8584_config_pre_init
	mov	x21, x0
	cbnz	w21, LBB0_15
	b	LBB0_1
LBB0_14:
Lloh81:
	adrp	x8, _EINVAL@GOTPAGE
Lloh82:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	neg	w21, w8
	cbz	w21, LBB0_1
LBB0_15:
	ldr	x0, [x19, #16]
	bl	_mutex_unlock
LBB0_16:
	mov	x0, x21
	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_17:
	mov	w21, #0
	b	LBB0_16
	.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 AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh73
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.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	_PHY_ID_VSC8574,4,2             ; @PHY_ID_VSC8574
	.comm	_PHY_ID_VSC8584,4,2             ; @PHY_ID_VSC8584
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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	_PHY_INTERFACE_MODE_QSGMII,8,3  ; @PHY_INTERFACE_MODE_QSGMII
	.comm	_MAC_CFG_QSGMII,4,2             ; @MAC_CFG_QSGMII
	.comm	_MAC_CFG_SGMII,4,2              ; @MAC_CFG_SGMII
	.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	_PROC_CMD_SGMII_MAC,4,2         ; @PROC_CMD_SGMII_MAC
	.comm	_PROC_CMD_FIBER_MEDIA_CONF,4,2  ; @PROC_CMD_FIBER_MEDIA_CONF
	.comm	_PROC_CMD_FIBER_DISABLE,4,2     ; @PROC_CMD_FIBER_DISABLE
	.comm	_PROC_CMD_FIBER_100BASE_FX,4,2  ; @PROC_CMD_FIBER_100BASE_FX
	.comm	_PROC_CMD_FIBER_1000BASE_X,4,2  ; @PROC_CMD_FIBER_1000BASE_X
	.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	_VSC8584_MAC_IF_SELECTION_MASK,4,2 ; @VSC8584_MAC_IF_SELECTION_MASK
	.comm	_MEDIA_OP_MODE_COPPER,4,2       ; @MEDIA_OP_MODE_COPPER
	.comm	_VSC8584_MAC_IF_SELECTION_SGMII,4,2 ; @VSC8584_MAC_IF_SELECTION_SGMII
	.comm	_VSC8584_MAC_IF_SELECTION_POS,4,2 ; @VSC8584_MAC_IF_SELECTION_POS
	.no_dead_strip	_vsc8584_config_init
.subsections_via_symbols
