	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc8584_config_pre_init
_vsc8584_config_pre_init:               ## @vsc8584_config_pre_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
	subq	$424, %rsp                      ## imm = 0x1A8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	l___const.vsc8584_config_pre_init.pre_init1(%rip), %rsi
	leaq	-400(%rbp), %rdi
	movl	$352, %edx                      ## imm = 0x160
	callq	_memcpy
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -448(%rbp)
	movaps	%xmm0, -432(%rbp)
	movaps	%xmm0, -416(%rbp)
	movabsq	$2433322311484550, %rax         ## imm = 0x8A51800000486
	movq	%rax, -448(%rbp)
	movabsq	$30899120008856712, %rax        ## imm = 0x6DC69600000488
	movq	%rax, -432(%rbp)
	movabsq	$9972914062474, %rax            ## imm = 0x9120000048A
	movq	%rax, -416(%rbp)
	movq	_MSCC_EXT_PAGE_ACCESS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MSCC_PHY_PAGE_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_base_write
	movq	_MSCC_PHY_EXT_CNTL_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_base_read
	movq	_SMI_BROADCAST_WR_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_phy_base_write
	movq	_MII_VSC85XX_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_phy_base_write
	movq	_MSCC_PHY_BYPASS_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_base_read
	movq	_PARALLEL_DET_IGNORE_ADVERTISED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_phy_base_write
	movl	(%r14), %esi
	movq	_MSCC_PHY_PAGE_EXTENDED_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_base_write
	movq	_MSCC_PHY_SERDES_TX_CRC_ERR_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_phy_base_write
	movl	(%r14), %esi
	movq	_MSCC_PHY_PAGE_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_base_write
	movq	_MSCC_PHY_TEST_PAGE_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$7968, %edx                     ## imm = 0x1F20
	callq	_phy_base_write
	movq	_MSCC_PHY_TEST_PAGE_8@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_base_read
	orl	$32768, %eax                    ## imm = 0x8000
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_phy_base_write
	movl	(%r14), %esi
	movq	_MSCC_PHY_PAGE_TR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_base_write
	movq	_MSCC_PHY_TR_CNTL@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	_TR_WRITE@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	$12196, %edi                    ## imm = 0x2FA4
	callq	_TR_ADDR
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_phy_base_write
	movq	_MSCC_PHY_TR_MSB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_base_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$-128, %eax
	leal	25(%rax), %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_base_write
	movl	(%r13), %r12d
	movl	(%r14), %ebx
	movl	$4004, %edi                     ## imm = 0xFA4
	callq	_TR_ADDR
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_phy_base_write
	leaq	-400(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	-388(%rbp), %rbx
	xorl	%r12d, %r12d
	leaq	-400(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbx), %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_vsc8584_csr_write
	incq	%r12
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jb	LBB0_2
LBB0_3:
	movq	_MSCC_EXT_PAGE_ACCESS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MSCC_PHY_PAGE_EXTENDED_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_base_write
	movq	_MSCC_PHY_CU_PMD_TX_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$654, %edx                      ## imm = 0x28E
	callq	_phy_base_write
	movl	(%r13), %esi
	movq	_MSCC_PHY_PAGE_TR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_base_write
	leaq	-448(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	-436(%rbp), %rbx
	xorl	%r12d, %r12d
	leaq	-448(%rbp), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbx), %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_vsc8584_csr_write
	incq	%r12
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jb	LBB0_5
LBB0_6:
	movl	(%r13), %esi
	movq	_MSCC_PHY_PAGE_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_base_write
	movq	_MSCC_PHY_TEST_PAGE_8@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_base_read
	andl	$-32769, %eax                   ## imm = 0xFFFF7FFF
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_phy_base_write
	movl	(%r13), %esi
	movq	_MSCC_PHY_PAGE_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_base_write
	movq	_MSCC_PHY_EXT_CNTL_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_base_read
	movq	_SMI_BROADCAST_WR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_phy_base_write
	movq	_MSCC_VSC8584_REVB_INT8051_FW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-464(%rbp), %rdi
	movq	%r15, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_dev_err
	jmp	LBB0_18
LBB0_8:
	movq	_MSCC_VSC8584_REVB_INT8051_FW_START_ADDR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-464(%rbp), %rax
	movq	(%rax), %rdx
	incq	%rdx
	leaq	-452(%rbp), %rcx
	movq	%r15, %rdi
	callq	_vsc8584_get_fw_crc
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	movl	-452(%rbp), %eax
	movq	_MSCC_VSC8584_REVB_INT8051_FW_CRC@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	-464(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vsc8584_patch_fw
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vsc8584_micro_deassert_reset
	movl	(%rbx), %esi
	movq	-464(%rbp), %rax
	movq	(%rax), %rdx
	incq	%rdx
	leaq	-452(%rbp), %rcx
	movq	%r15, %rdi
	callq	_vsc8584_get_fw_crc
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	movl	-452(%rbp), %eax
	cmpl	(%r12), %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_15:
	movq	%r15, %rdi
	callq	_vsc8584_micro_assert_reset
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_vsc8584_micro_deassert_reset
	xorl	%r14d, %r14d
LBB0_17:
	movl	(%r13), %esi
	movq	_MSCC_PHY_PAGE_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_phy_base_write
	movq	-464(%rbp), %rdi
	callq	_release_firmware
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r14d, %eax
	addq	$424, %rsp                      ## imm = 0x1A8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.vsc8584_config_pre_init.pre_init1
l___const.vsc8584_config_pre_init.pre_init1:
	.long	2042                            ## 0x7fa
	.long	5246991                         ## 0x50100f
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5768                            ## 0x1688
	.long	302977                          ## 0x49f81
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	3984                            ## 0xf90
	.long	6850944                         ## 0x688980
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	932                             ## 0x3a4
	.long	55536                           ## 0xd8f0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	4032                            ## 0xfc0
	.long	1024                            ## 0x400
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	3970                            ## 0xf82
	.long	1224706                         ## 0x12b002
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5766                            ## 0x1686
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5772                            ## 0x168c
	.long	13812847                        ## 0xd2c46f
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	6050                            ## 0x17a2
	.long	1568                            ## 0x620
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5792                            ## 0x16a0
	.long	15663069                        ## 0xeeffdd
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5798                            ## 0x16a6
	.long	463944                          ## 0x71448
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5796                            ## 0x16a4
	.long	1250095                         ## 0x13132f
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5800                            ## 0x16a8
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	4092                            ## 0xffc
	.long	12623912                        ## 0xc0a028
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	4072                            ## 0xfe8
	.long	9547884                         ## 0x91b06c
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	4074                            ## 0xfea
	.long	267776                          ## 0x41600
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	3968                            ## 0xf80
	.long	16775935                        ## 0xfffaff
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	4076                            ## 0xfec
	.long	9443337                         ## 0x901809
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	4094                            ## 0xffe
	.long	11538439                        ## 0xb01007
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5808                            ## 0x16b0
	.long	15662848                        ## 0xeeff00
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5810                            ## 0x16b2
	.long	28672                           ## 0x7000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	5812                            ## 0x16b4
	.long	2068                            ## 0x814
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_MSCC_EXT_PAGE_ACCESS,4,2       ## @MSCC_EXT_PAGE_ACCESS
	.comm	_MSCC_PHY_PAGE_STANDARD,4,2     ## @MSCC_PHY_PAGE_STANDARD
	.comm	_MSCC_PHY_EXT_CNTL_STATUS,4,2   ## @MSCC_PHY_EXT_CNTL_STATUS
	.comm	_SMI_BROADCAST_WR_EN,4,2        ## @SMI_BROADCAST_WR_EN
	.comm	_MII_VSC85XX_INT_MASK,4,2       ## @MII_VSC85XX_INT_MASK
	.comm	_MSCC_PHY_BYPASS_CONTROL,4,2    ## @MSCC_PHY_BYPASS_CONTROL
	.comm	_PARALLEL_DET_IGNORE_ADVERTISED,4,2 ## @PARALLEL_DET_IGNORE_ADVERTISED
	.comm	_MSCC_PHY_PAGE_EXTENDED_3,4,2   ## @MSCC_PHY_PAGE_EXTENDED_3
	.comm	_MSCC_PHY_SERDES_TX_CRC_ERR_CNT,4,2 ## @MSCC_PHY_SERDES_TX_CRC_ERR_CNT
	.comm	_MSCC_PHY_PAGE_TEST,4,2         ## @MSCC_PHY_PAGE_TEST
	.comm	_MSCC_PHY_TEST_PAGE_5,4,2       ## @MSCC_PHY_TEST_PAGE_5
	.comm	_MSCC_PHY_TEST_PAGE_8,4,2       ## @MSCC_PHY_TEST_PAGE_8
	.comm	_MSCC_PHY_PAGE_TR,4,2           ## @MSCC_PHY_PAGE_TR
	.comm	_MSCC_PHY_TR_CNTL,4,2           ## @MSCC_PHY_TR_CNTL
	.comm	_TR_WRITE,4,2                   ## @TR_WRITE
	.comm	_MSCC_PHY_TR_MSB,4,2            ## @MSCC_PHY_TR_MSB
	.comm	_MSCC_PHY_PAGE_EXTENDED_2,4,2   ## @MSCC_PHY_PAGE_EXTENDED_2
	.comm	_MSCC_PHY_CU_PMD_TX_CNTL,4,2    ## @MSCC_PHY_CU_PMD_TX_CNTL
	.comm	_MSCC_VSC8584_REVB_INT8051_FW,4,2 ## @MSCC_VSC8584_REVB_INT8051_FW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to load firmware %s, ret: %d\n"

	.comm	_MSCC_VSC8584_REVB_INT8051_FW_START_ADDR,4,2 ## @MSCC_VSC8584_REVB_INT8051_FW_START_ADDR
	.comm	_MSCC_VSC8584_REVB_INT8051_FW_CRC,4,2 ## @MSCC_VSC8584_REVB_INT8051_FW_CRC
L_.str.1:                               ## @.str.1
	.asciz	"FW CRC is not the expected one, patching FW\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to patch FW, expect non-optimal device\n"

L_.str.3:                               ## @.str.3
	.asciz	"FW CRC after patching is not the expected one, expect non-optimal device\n"

	.no_dead_strip	_vsc8584_config_pre_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vsc8584_config_pre_init
lCPI0_0:
	.long	1158                            ; 0x486
	.long	566552                          ; 0x8a518
lCPI0_1:
	.long	1160                            ; 0x488
	.long	7194262                         ; 0x6dc696
lCPI0_2:
	.long	1162                            ; 0x48a
	.long	2322                            ; 0x912
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vsc8584_config_pre_init:               ; @vsc8584_config_pre_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
	sub	sp, sp, #432
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x1, l___const.vsc8584_config_pre_init.pre_init1@PAGE
Lloh4:
	add	x1, x1, l___const.vsc8584_config_pre_init.pre_init1@PAGEOFF
	add	x0, sp, #64
	mov	w2, #352
	bl	_memcpy
	movi.2d	v0, #0000000000000000
	stur	q0, [sp, #24]
	stur	q0, [sp, #40]
	str	xzr, [sp, #56]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
Lloh7:
	adrp	x8, lCPI0_1@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #32]
Lloh9:
	adrp	x8, lCPI0_2@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	str	d0, [sp, #48]
Lloh11:
	adrp	x21, _MSCC_EXT_PAGE_ACCESS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MSCC_EXT_PAGE_ACCESS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh13:
	adrp	x8, _MSCC_PHY_PAGE_STANDARD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSCC_PHY_PAGE_STANDARD@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_base_write
Lloh16:
	adrp	x23, _MSCC_PHY_EXT_CNTL_STATUS@GOTPAGE
Lloh17:
	ldr	x23, [x23, _MSCC_PHY_EXT_CNTL_STATUS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_phy_base_read
Lloh18:
	adrp	x8, _SMI_BROADCAST_WR_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SMI_BROADCAST_WR_EN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_phy_base_write
Lloh21:
	adrp	x8, _MII_VSC85XX_INT_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MII_VSC85XX_INT_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_base_write
Lloh24:
	adrp	x20, _MSCC_PHY_BYPASS_CONTROL@GOTPAGE
Lloh25:
	ldr	x20, [x20, _MSCC_PHY_BYPASS_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_base_read
Lloh26:
	adrp	x8, _PARALLEL_DET_IGNORE_ADVERTISED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PARALLEL_DET_IGNORE_ADVERTISED@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_base_write
	ldr	w1, [x21]
Lloh29:
	adrp	x8, _MSCC_PHY_PAGE_EXTENDED_3@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSCC_PHY_PAGE_EXTENDED_3@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_base_write
Lloh32:
	adrp	x8, _MSCC_PHY_SERDES_TX_CRC_ERR_CNT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MSCC_PHY_SERDES_TX_CRC_ERR_CNT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8192
	bl	_phy_base_write
	ldr	w1, [x21]
Lloh35:
	adrp	x25, _MSCC_PHY_PAGE_TEST@GOTPAGE
Lloh36:
	ldr	x25, [x25, _MSCC_PHY_PAGE_TEST@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_phy_base_write
Lloh37:
	adrp	x8, _MSCC_PHY_TEST_PAGE_5@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MSCC_PHY_TEST_PAGE_5@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #7968
	bl	_phy_base_write
Lloh40:
	adrp	x26, _MSCC_PHY_TEST_PAGE_8@GOTPAGE
Lloh41:
	ldr	x26, [x26, _MSCC_PHY_TEST_PAGE_8@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_phy_base_read
	orr	w2, w0, #0x8000
	ldr	w1, [x26]
	mov	x0, x19
	bl	_phy_base_write
	ldr	w1, [x21]
Lloh42:
	adrp	x28, _MSCC_PHY_PAGE_TR@GOTPAGE
Lloh43:
	ldr	x28, [x28, _MSCC_PHY_PAGE_TR@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x0, x19
	bl	_phy_base_write
Lloh44:
	adrp	x22, _MSCC_PHY_TR_CNTL@GOTPAGE
Lloh45:
	ldr	x22, [x22, _MSCC_PHY_TR_CNTL@GOTPAGEOFF]
	ldr	w20, [x22]
Lloh46:
	adrp	x27, _TR_WRITE@GOTPAGE
Lloh47:
	ldr	x27, [x27, _TR_WRITE@GOTPAGEOFF]
	ldr	w24, [x27]
	mov	w0, #12196
	bl	_TR_ADDR
	orr	w2, w0, w24
	mov	x0, x19
	mov	x1, x20
	bl	_phy_base_write
Lloh48:
	adrp	x20, _MSCC_PHY_TR_MSB@GOTPAGE
Lloh49:
	ldr	x20, [x20, _MSCC_PHY_TR_MSB@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_base_read
	mov	x2, x0
	mov	w8, #25
	bfxil	w2, w8, #0, #7
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_base_write
	ldr	w20, [x22]
	ldr	w22, [x27]
	mov	w0, #4004
	bl	_TR_ADDR
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x20
	bl	_phy_base_write
	add	x0, sp, #64
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, #0
	add	x8, sp, #64
	add	x27, x8, #12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x27, #-4]
	mov	x0, x19
	bl	_vsc8584_csr_write
	add	x20, x20, #1
	add	x0, sp, #64
	bl	_ARRAY_SIZE
	add	x27, x27, #16
	cmp	x20, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
	ldr	w1, [x21]
Lloh50:
	adrp	x8, _MSCC_PHY_PAGE_EXTENDED_2@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MSCC_PHY_PAGE_EXTENDED_2@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_base_write
Lloh53:
	adrp	x8, _MSCC_PHY_CU_PMD_TX_CNTL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MSCC_PHY_CU_PMD_TX_CNTL@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #654
	bl	_phy_base_write
	ldr	w1, [x21]
	ldr	w2, [x28]
	mov	x0, x19
	bl	_phy_base_write
	add	x27, sp, #16
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_6
; %bb.4:
	mov	x20, #0
	add	x27, x27, #12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x27, #-4]
	mov	x0, x19
	bl	_vsc8584_csr_write
	add	x20, x20, #1
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	add	x27, x27, #16
	cmp	x20, w0, uxtw
	b.lo	LBB0_5
LBB0_6:
	ldr	w1, [x21]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_phy_base_write
	ldr	w1, [x26]
	mov	x0, x19
	bl	_phy_base_read
	and	w2, w0, #0xffff7fff
	ldr	w1, [x26]
	mov	x0, x19
	bl	_phy_base_write
	ldr	w1, [x21]
Lloh56:
	adrp	x22, _MSCC_PHY_PAGE_STANDARD@GOTPAGE
Lloh57:
	ldr	x22, [x22, _MSCC_PHY_PAGE_STANDARD@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_phy_base_write
	ldr	w1, [x23]
	mov	x0, x19
	bl	_phy_base_read
Lloh58:
	adrp	x8, _SMI_BROADCAST_WR_EN@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SMI_BROADCAST_WR_EN@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x23]
	mov	x0, x19
	bl	_phy_base_write
Lloh61:
	adrp	x23, _MSCC_VSC8584_REVB_INT8051_FW@GOTPAGE
Lloh62:
	ldr	x23, [x23, _MSCC_VSC8584_REVB_INT8051_FW@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x0, sp, #8
	mov	x2, x19
	bl	_request_firmware
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
	ldr	w2, [x23]
Lloh63:
	adrp	x1, l_.str@PAGE
Lloh64:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_dev_err
	b	LBB0_18
LBB0_8:
Lloh65:
	adrp	x23, _MSCC_VSC8584_REVB_INT8051_FW_START_ADDR@GOTPAGE
Lloh66:
	ldr	x23, [x23, _MSCC_VSC8584_REVB_INT8051_FW_START_ADDR@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	add	x2, x8, #1
	add	x3, sp, #4
	mov	x0, x19
	bl	_vsc8584_get_fw_crc
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.9:
	ldr	w8, [sp, #4]
Lloh67:
	adrp	x24, _MSCC_VSC8584_REVB_INT8051_FW_CRC@GOTPAGE
Lloh68:
	ldr	x24, [x24, _MSCC_VSC8584_REVB_INT8051_FW_CRC@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.10:
Lloh69:
	adrp	x1, l_.str.1@PAGE
Lloh70:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_vsc8584_patch_fw
	cbz	x0, LBB0_12
; %bb.11:
Lloh71:
	adrp	x1, l_.str.2@PAGE
Lloh72:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_vsc8584_micro_deassert_reset
	ldr	w1, [x23]
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	add	x2, x8, #1
	add	x3, sp, #4
	mov	x0, x19
	bl	_vsc8584_get_fw_crc
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.13:
	ldr	w8, [sp, #4]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.14:
Lloh73:
	adrp	x1, l_.str.3@PAGE
Lloh74:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_15:
	mov	x0, x19
	bl	_vsc8584_micro_assert_reset
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.16:
	mov	x0, x19
	mov	w1, #1
	bl	_vsc8584_micro_deassert_reset
LBB0_17:
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_phy_base_write
	ldr	x0, [sp, #8]
	bl	_release_firmware
LBB0_18:
	ldur	x8, [x29, #-96]
Lloh75:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh76:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh77:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x20
	add	sp, sp, #432
	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_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdrp	Lloh9, Lloh13
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.vsc8584_config_pre_init.pre_init1
l___const.vsc8584_config_pre_init.pre_init1:
	.long	2042                            ; 0x7fa
	.long	5246991                         ; 0x50100f
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5768                            ; 0x1688
	.long	302977                          ; 0x49f81
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	3984                            ; 0xf90
	.long	6850944                         ; 0x688980
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	932                             ; 0x3a4
	.long	55536                           ; 0xd8f0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	4032                            ; 0xfc0
	.long	1024                            ; 0x400
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	3970                            ; 0xf82
	.long	1224706                         ; 0x12b002
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5766                            ; 0x1686
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5772                            ; 0x168c
	.long	13812847                        ; 0xd2c46f
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	6050                            ; 0x17a2
	.long	1568                            ; 0x620
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5792                            ; 0x16a0
	.long	15663069                        ; 0xeeffdd
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5798                            ; 0x16a6
	.long	463944                          ; 0x71448
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5796                            ; 0x16a4
	.long	1250095                         ; 0x13132f
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5800                            ; 0x16a8
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	4092                            ; 0xffc
	.long	12623912                        ; 0xc0a028
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	4072                            ; 0xfe8
	.long	9547884                         ; 0x91b06c
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	4074                            ; 0xfea
	.long	267776                          ; 0x41600
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	3968                            ; 0xf80
	.long	16775935                        ; 0xfffaff
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	4076                            ; 0xfec
	.long	9443337                         ; 0x901809
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	4094                            ; 0xffe
	.long	11538439                        ; 0xb01007
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5808                            ; 0x16b0
	.long	15662848                        ; 0xeeff00
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5810                            ; 0x16b2
	.long	28672                           ; 0x7000
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	5812                            ; 0x16b4
	.long	2068                            ; 0x814
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_MSCC_EXT_PAGE_ACCESS,4,2       ; @MSCC_EXT_PAGE_ACCESS
	.comm	_MSCC_PHY_PAGE_STANDARD,4,2     ; @MSCC_PHY_PAGE_STANDARD
	.comm	_MSCC_PHY_EXT_CNTL_STATUS,4,2   ; @MSCC_PHY_EXT_CNTL_STATUS
	.comm	_SMI_BROADCAST_WR_EN,4,2        ; @SMI_BROADCAST_WR_EN
	.comm	_MII_VSC85XX_INT_MASK,4,2       ; @MII_VSC85XX_INT_MASK
	.comm	_MSCC_PHY_BYPASS_CONTROL,4,2    ; @MSCC_PHY_BYPASS_CONTROL
	.comm	_PARALLEL_DET_IGNORE_ADVERTISED,4,2 ; @PARALLEL_DET_IGNORE_ADVERTISED
	.comm	_MSCC_PHY_PAGE_EXTENDED_3,4,2   ; @MSCC_PHY_PAGE_EXTENDED_3
	.comm	_MSCC_PHY_SERDES_TX_CRC_ERR_CNT,4,2 ; @MSCC_PHY_SERDES_TX_CRC_ERR_CNT
	.comm	_MSCC_PHY_PAGE_TEST,4,2         ; @MSCC_PHY_PAGE_TEST
	.comm	_MSCC_PHY_TEST_PAGE_5,4,2       ; @MSCC_PHY_TEST_PAGE_5
	.comm	_MSCC_PHY_TEST_PAGE_8,4,2       ; @MSCC_PHY_TEST_PAGE_8
	.comm	_MSCC_PHY_PAGE_TR,4,2           ; @MSCC_PHY_PAGE_TR
	.comm	_MSCC_PHY_TR_CNTL,4,2           ; @MSCC_PHY_TR_CNTL
	.comm	_TR_WRITE,4,2                   ; @TR_WRITE
	.comm	_MSCC_PHY_TR_MSB,4,2            ; @MSCC_PHY_TR_MSB
	.comm	_MSCC_PHY_PAGE_EXTENDED_2,4,2   ; @MSCC_PHY_PAGE_EXTENDED_2
	.comm	_MSCC_PHY_CU_PMD_TX_CNTL,4,2    ; @MSCC_PHY_CU_PMD_TX_CNTL
	.comm	_MSCC_VSC8584_REVB_INT8051_FW,4,2 ; @MSCC_VSC8584_REVB_INT8051_FW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to load firmware %s, ret: %d\n"

	.comm	_MSCC_VSC8584_REVB_INT8051_FW_START_ADDR,4,2 ; @MSCC_VSC8584_REVB_INT8051_FW_START_ADDR
	.comm	_MSCC_VSC8584_REVB_INT8051_FW_CRC,4,2 ; @MSCC_VSC8584_REVB_INT8051_FW_CRC
l_.str.1:                               ; @.str.1
	.asciz	"FW CRC is not the expected one, patching FW\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to patch FW, expect non-optimal device\n"

l_.str.3:                               ; @.str.3
	.asciz	"FW CRC after patching is not the expected one, expect non-optimal device\n"

	.no_dead_strip	_vsc8584_config_pre_init
.subsections_via_symbols
