	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_gmac_config
_mvpp2_gmac_config:                     ## @mvpp2_gmac_config
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	_MVPP2_GMAC_AUTONEG_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_readl
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_MVPP2_GMAC_CTRL_0_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_readl
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_MVPP2_GMAC_CTRL_2_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_MVPP22_GMAC_CTRL_4_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_readl
	movq	_MVPP2_GMAC_CONFIG_MII_SPEED@GOTPCREL(%rip), %rdx
	movq	_MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rdx), %r15d
	movq	_MVPP2_GMAC_AN_SPEED_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_MVPP2_GMAC_FC_ADV_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_MVPP2_GMAC_FC_ADV_ASM_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_MVPP2_GMAC_FLOW_CTRL_AUTONEG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_MVPP2_GMAC_AN_DUPLEX_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_MVPP2_GMAC_IN_BAND_AUTONEG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_MVPP2_GMAC_INBAND_AN_MASK@GOTPCREL(%rip), %rdx
	movq	_MVPP2_GMAC_PORT_RESET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rdx), %r12d
	notl	%r15d
	movq	_MVPP2_GMAC_PCS_ENABLE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	notl	%r12d
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	andl	%ebx, %r12d
	movq	_MVPP22_CTRL4_RX_FC_EN@GOTPCREL(%rip), %rcx
	movq	_MVPP22_CTRL4_TX_FC_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	andl	%eax, %ebx
	movq	_MVPP2_GMAC_PORT_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rdi
	callq	_phy_interface_mode_is_8023z
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MVPP2_GMAC_PCS_ENABLE_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
LBB0_2:
	movq	_MVPP2_GMAC_PCS_ENABLE_MASK@GOTPCREL(%rip), %rcx
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	(%r14), %rdi
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_27
## %bb.3:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	orl	(%rcx), %eax
	movq	_MVPP2_GMAC_INBAND_AN_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
LBB0_4:
	movq	_MVPP22_CTRL4_EXT_PIN_GMII_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_MVPP22_CTRL4_SYNC_BYPASS_DIS@GOTPCREL(%rip), %rax
	movq	_MVPP22_CTRL4_DP_CLK_SEL@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	_MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
LBB0_6:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	andl	%eax, %r15d
	movl	40(%r14), %edi
	movq	_Pause@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phylink_test
	movq	%r14, %rcx
	xorl	%r12d, %r12d
	movl	$0, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_MVPP2_GMAC_FC_ADV_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_8:
	orl	%r15d, %r14d
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	notl	%ebx
	movq	%rcx, %r15
	movl	40(%rcx), %edi
	movq	_Asym_Pause@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phylink_test
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_MVPP2_GMAC_FC_ADV_ASM_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_10:
	orl	%r12d, %r14d
	andl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_phylink_autoneg_inband
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:
	movq	(%r15), %rdi
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_23
## %bb.12:
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movq	_MVPP2_GMAC_FORCE_LINK_DOWN@GOTPCREL(%rip), %rax
	movq	_MVPP2_GMAC_FORCE_LINK_PASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r14d
	movq	_MVPP2_GMAC_AN_SPEED_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MVPP2_GMAC_IN_BAND_AUTONEG@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	%r14d, %edi
	movl	16(%r15), %eax
	movq	_MLO_PAUSE_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_14
## %bb.13:
	movq	_MVPP22_CTRL4_TX_FC_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_14:
	movq	_MVPP2_GMAC_AN_DUPLEX_EN@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	orl	%ecx, %edx
	movq	_MLO_PAUSE_RX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	_MVPP2_GMAC_CTRL_2_REG@GOTPCREL(%rip), %r12
	movq	_MVPP2_GMAC_AUTONEG_CONFIG@GOTPCREL(%rip), %r14
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_16
## %bb.15:
	movq	_MVPP22_CTRL4_RX_FC_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_16:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	_MVPP2_GMAC_PORT_TYPE_MASK@GOTPCREL(%rip), %rsi
	jmp	LBB0_42
LBB0_17:
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	movq	%r15, %rcx
	cmpq	$0, 32(%r15)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_19
## %bb.18:
	movq	_MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_19:
	orl	%r14d, %edx
	movq	8(%rcx), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_MVPP2_GMAC_PORT_TYPE_MASK@GOTPCREL(%rip), %rsi
	je	LBB0_29
## %bb.20:
	movq	_SPEED_2500@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.21:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.22:
	movq	_MVPP2_GMAC_CONFIG_MII_SPEED@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_23:
	callq	_phy_interface_mode_is_8023z
	testq	%rax, %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_36
## %bb.24:
	movq	_MVPP2_GMAC_PORT_TYPE_MASK@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ebx
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movq	_MVPP2_GMAC_FORCE_LINK_DOWN@GOTPCREL(%rip), %rax
	movq	_MVPP2_GMAC_FORCE_LINK_PASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	movq	_MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MVPP2_GMAC_IN_BAND_AUTONEG@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	andl	%ecx, %r14d
	orl	%r14d, %edi
	movq	_MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	16(%r15), %eax
	movq	_MLO_PAUSE_AN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_37
## %bb.25:
	cmpq	$0, 24(%r15)
	je	LBB0_37
## %bb.26:
	movq	_MVPP2_GMAC_FLOW_CTRL_AUTONEG@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_MVPP2_GMAC_CTRL_2_REG@GOTPCREL(%rip), %r12
	movq	_MVPP2_GMAC_AUTONEG_CONFIG@GOTPCREL(%rip), %r14
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_42
LBB0_27:
	callq	_phy_interface_mode_is_rgmii
	testq	%rax, %rax
	je	LBB0_6
## %bb.28:
	movq	_MVPP22_CTRL4_DP_CLK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_MVPP22_CTRL4_EXT_PIN_GMII_SEL@GOTPCREL(%rip), %rax
	movq	_MVPP22_CTRL4_SYNC_BYPASS_DIS@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_29:
	movq	_MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPCREL(%rip), %rax
LBB0_30:
	orl	(%rax), %edx
LBB0_31:
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	_MVPP2_GMAC_CTRL_2_REG@GOTPCREL(%rip), %r12
	movq	_MVPP2_GMAC_AUTONEG_CONFIG@GOTPCREL(%rip), %r14
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	16(%r15), %eax
	movq	_MLO_PAUSE_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_33
## %bb.32:
	movq	_MVPP22_CTRL4_TX_FC_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_33:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	orl	%ecx, %edx
	movq	_MLO_PAUSE_RX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movl	%edi, %r15d
	je	LBB0_35
## %bb.34:
	movq	_MVPP22_CTRL4_RX_FC_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_35:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_42
LBB0_36:
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	_MVPP2_GMAC_CTRL_2_REG@GOTPCREL(%rip), %r12
	movq	_MVPP2_GMAC_AUTONEG_CONFIG@GOTPCREL(%rip), %r14
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	_MVPP2_GMAC_PORT_TYPE_MASK@GOTPCREL(%rip), %rsi
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_42
LBB0_37:
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_MLO_PAUSE_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_39
## %bb.38:
	movq	_MVPP22_CTRL4_TX_FC_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_39:
	orl	%ecx, %edx
	movq	_MLO_PAUSE_RX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	_MVPP2_GMAC_CTRL_2_REG@GOTPCREL(%rip), %r12
	movq	_MVPP2_GMAC_AUTONEG_CONFIG@GOTPCREL(%rip), %r14
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_41
## %bb.40:
	movq	_MVPP22_CTRL4_RX_FC_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_41:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_42:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	xorl	%ebx, %eax
	testl	%eax, (%rsi)
	jne	LBB0_45
## %bb.43:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	xorl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movq	_MVPP2_GMAC_INBAND_AN_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_45
## %bb.44:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MVPP2_GMAC_IN_BAND_AUTONEG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_MVPP2_GMAC_CONFIG_MII_SPEED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_MVPP2_GMAC_AN_SPEED_EN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	xorl	%r15d, %eax
	movq	_MVPP2_GMAC_AN_DUPLEX_EN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_46
LBB0_45:
	movq	_MVPP2_GMAC_FORCE_LINK_PASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movq	_MVPP2_GMAC_FORCE_LINK_DOWN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	(%r14), %rsi
	addq	(%r13), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_MVPP2_GMAC_PORT_RESET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	orl	%eax, %edi
	movq	(%r12), %rsi
	addq	(%r13), %rsi
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	callq	_writel
LBB0_46:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %ebx
	je	LBB0_48
## %bb.47:
	movq	_MVPP2_GMAC_CTRL_0_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%ecx, %edi
	callq	_writel
	movl	-60(%rbp), %edi                 ## 4-byte Reload
LBB0_48:
	cmpl	%edi, -68(%rbp)                 ## 4-byte Folded Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_50
## %bb.49:
	movq	(%r12), %rsi
	addq	(%r13), %rsi
	callq	_writel
LBB0_50:
	cmpl	%ebx, -72(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_52
## %bb.51:
	movq	_MVPP22_GMAC_CTRL_4_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
LBB0_52:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	cmpl	%edi, %r15d
	je	LBB0_54
## %bb.53:
	movq	(%r14), %rsi
	addq	(%r13), %rsi
	callq	_writel
LBB0_54:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movq	_MVPP2_GMAC_PORT_RESET_MASK@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_56
	.p2align	4, 0x90
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	(%r13), %rdi
	callq	_readl
	testl	%eax, (%rbx)
	jne	LBB0_55
LBB0_56:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_GMAC_AUTONEG_CONFIG,8,3  ## @MVPP2_GMAC_AUTONEG_CONFIG
	.comm	_MVPP2_GMAC_CTRL_0_REG,8,3      ## @MVPP2_GMAC_CTRL_0_REG
	.comm	_MVPP2_GMAC_CTRL_2_REG,8,3      ## @MVPP2_GMAC_CTRL_2_REG
	.comm	_MVPP22_GMAC_CTRL_4_REG,8,3     ## @MVPP22_GMAC_CTRL_4_REG
	.comm	_MVPP2_GMAC_CONFIG_MII_SPEED,4,2 ## @MVPP2_GMAC_CONFIG_MII_SPEED
	.comm	_MVPP2_GMAC_CONFIG_GMII_SPEED,4,2 ## @MVPP2_GMAC_CONFIG_GMII_SPEED
	.comm	_MVPP2_GMAC_AN_SPEED_EN,4,2     ## @MVPP2_GMAC_AN_SPEED_EN
	.comm	_MVPP2_GMAC_FC_ADV_EN,4,2       ## @MVPP2_GMAC_FC_ADV_EN
	.comm	_MVPP2_GMAC_FC_ADV_ASM_EN,4,2   ## @MVPP2_GMAC_FC_ADV_ASM_EN
	.comm	_MVPP2_GMAC_FLOW_CTRL_AUTONEG,4,2 ## @MVPP2_GMAC_FLOW_CTRL_AUTONEG
	.comm	_MVPP2_GMAC_CONFIG_FULL_DUPLEX,4,2 ## @MVPP2_GMAC_CONFIG_FULL_DUPLEX
	.comm	_MVPP2_GMAC_AN_DUPLEX_EN,4,2    ## @MVPP2_GMAC_AN_DUPLEX_EN
	.comm	_MVPP2_GMAC_IN_BAND_AUTONEG,4,2 ## @MVPP2_GMAC_IN_BAND_AUTONEG
	.comm	_MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS,4,2 ## @MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS
	.comm	_MVPP2_GMAC_PORT_TYPE_MASK,4,2  ## @MVPP2_GMAC_PORT_TYPE_MASK
	.comm	_MVPP2_GMAC_INBAND_AN_MASK,4,2  ## @MVPP2_GMAC_INBAND_AN_MASK
	.comm	_MVPP2_GMAC_PORT_RESET_MASK,4,2 ## @MVPP2_GMAC_PORT_RESET_MASK
	.comm	_MVPP2_GMAC_PCS_ENABLE_MASK,4,2 ## @MVPP2_GMAC_PCS_ENABLE_MASK
	.comm	_MVPP22_CTRL4_RX_FC_EN,4,2      ## @MVPP22_CTRL4_RX_FC_EN
	.comm	_MVPP22_CTRL4_TX_FC_EN,4,2      ## @MVPP22_CTRL4_TX_FC_EN
	.comm	_MVPP22_CTRL4_EXT_PIN_GMII_SEL,4,2 ## @MVPP22_CTRL4_EXT_PIN_GMII_SEL
	.comm	_MVPP22_CTRL4_SYNC_BYPASS_DIS,4,2 ## @MVPP22_CTRL4_SYNC_BYPASS_DIS
	.comm	_MVPP22_CTRL4_DP_CLK_SEL,4,2    ## @MVPP22_CTRL4_DP_CLK_SEL
	.comm	_MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE,4,2 ## @MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_Pause,4,2                      ## @Pause
	.comm	_Asym_Pause,4,2                 ## @Asym_Pause
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_2500,8,3                 ## @SPEED_2500
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_MLO_PAUSE_TX,4,2               ## @MLO_PAUSE_TX
	.comm	_MLO_PAUSE_RX,4,2               ## @MLO_PAUSE_RX
	.comm	_MVPP2_GMAC_FORCE_LINK_DOWN,4,2 ## @MVPP2_GMAC_FORCE_LINK_DOWN
	.comm	_MVPP2_GMAC_FORCE_LINK_PASS,4,2 ## @MVPP2_GMAC_FORCE_LINK_PASS
	.comm	_MLO_PAUSE_AN,4,2               ## @MLO_PAUSE_AN
	.comm	_MVPP2_GMAC_AN_PORT_DOWN_MASK,4,2 ## @MVPP2_GMAC_AN_PORT_DOWN_MASK
	.no_dead_strip	_mvpp2_gmac_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_gmac_config
_mvpp2_gmac_config:                     ; @mvpp2_gmac_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x27, x2
	str	w1, [sp, #20]                   ; 4-byte Folded Spill
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MVPP2_GMAC_CTRL_0_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MVPP2_GMAC_CTRL_0_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x19]
Lloh6:
	adrp	x23, _MVPP2_GMAC_CTRL_2_REG@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MVPP2_GMAC_CTRL_2_REG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _MVPP22_GMAC_CTRL_4_REG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MVPP22_GMAC_CTRL_4_REG@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh11:
	adrp	x8, _MVPP2_GMAC_CONFIG_MII_SPEED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MVPP2_GMAC_CONFIG_MII_SPEED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _MVPP2_GMAC_AN_SPEED_EN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MVPP2_GMAC_AN_SPEED_EN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _MVPP2_GMAC_FC_ADV_EN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MVPP2_GMAC_FC_ADV_EN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _MVPP2_GMAC_FC_ADV_ASM_EN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MVPP2_GMAC_FC_ADV_ASM_EN@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _MVPP2_GMAC_FLOW_CTRL_AUTONEG@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MVPP2_GMAC_FLOW_CTRL_AUTONEG@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _MVPP2_GMAC_AN_DUPLEX_EN@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MVPP2_GMAC_AN_DUPLEX_EN@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh35:
	adrp	x9, _MVPP2_GMAC_IN_BAND_AUTONEG@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MVPP2_GMAC_IN_BAND_AUTONEG@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh38:
	adrp	x9, _MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh41:
	adrp	x9, _MVPP2_GMAC_PORT_TYPE_MASK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _MVPP2_GMAC_PORT_TYPE_MASK@GOTPAGEOFF]
	bic	w28, w20, w8
Lloh43:
	ldr	w8, [x9]
	str	w22, [sp, #24]                  ; 4-byte Folded Spill
	bic	w8, w22, w8
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh44:
	adrp	x8, _MVPP2_GMAC_INBAND_AN_MASK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MVPP2_GMAC_INBAND_AN_MASK@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x22, _MVPP2_GMAC_PORT_RESET_MASK@GOTPAGE
Lloh48:
	ldr	x22, [x22, _MVPP2_GMAC_PORT_RESET_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh49:
	adrp	x25, _MVPP2_GMAC_PCS_ENABLE_MASK@GOTPAGE
Lloh50:
	ldr	x25, [x25, _MVPP2_GMAC_PCS_ENABLE_MASK@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
	str	w21, [sp, #28]                  ; 4-byte Folded Spill
	bic	w24, w21, w8
Lloh51:
	adrp	x8, _MVPP22_CTRL4_RX_FC_EN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MVPP22_CTRL4_RX_FC_EN@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _MVPP22_CTRL4_TX_FC_EN@GOTPAGE
Lloh55:
	ldr	x9, [x9, _MVPP22_CTRL4_TX_FC_EN@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	bic	w26, w0, w8
	ldr	x0, [x27]
	bl	_phy_interface_mode_is_8023z
Lloh57:
	adrp	x21, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh58:
	ldr	x21, [x21, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x25]
	orr	w24, w8, w24
	b	LBB0_4
LBB0_2:
	ldr	x0, [x27]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.3:
	ldr	w8, [x25]
Lloh59:
	adrp	x9, _MVPP2_GMAC_INBAND_AN_MASK@GOTPAGE
Lloh60:
	ldr	x9, [x9, _MVPP2_GMAC_INBAND_AN_MASK@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w8, w24
	orr	w24, w8, w9
LBB0_4:
Lloh62:
	adrp	x8, _MVPP22_CTRL4_EXT_PIN_GMII_SEL@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MVPP22_CTRL4_EXT_PIN_GMII_SEL@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	bic	w8, w26, w8
Lloh65:
	adrp	x9, _MVPP22_CTRL4_SYNC_BYPASS_DIS@GOTPAGE
Lloh66:
	ldr	x9, [x9, _MVPP22_CTRL4_SYNC_BYPASS_DIS@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
Lloh68:
	adrp	x10, _MVPP22_CTRL4_DP_CLK_SEL@GOTPAGE
Lloh69:
	ldr	x10, [x10, _MVPP22_CTRL4_DP_CLK_SEL@GOTPAGEOFF]
LBB0_5:
	ldr	w10, [x10]
Lloh70:
	adrp	x11, _MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE@GOTPAGE
Lloh71:
	ldr	x11, [x11, _MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE@GOTPAGEOFF]
Lloh72:
	ldr	w11, [x11]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w26, w8, w11
LBB0_6:
Lloh73:
	adrp	x25, _MVPP2_GMAC_FC_ADV_EN@GOTPAGE
Lloh74:
	ldr	x25, [x25, _MVPP2_GMAC_FC_ADV_EN@GOTPAGEOFF]
	ldr	w0, [x27, #40]
Lloh75:
	adrp	x8, _Pause@GOTPAGE
Lloh76:
	ldr	x8, [x8, _Pause@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	bl	_phylink_test
Lloh78:
	ldr	w8, [x25]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w25, w8, w28
	ldr	w0, [x27, #40]
Lloh79:
	adrp	x8, _Asym_Pause@GOTPAGE
Lloh80:
	ldr	x8, [x8, _Asym_Pause@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	bl	_phylink_test
Lloh82:
	adrp	x8, _MVPP2_GMAC_FC_ADV_ASM_EN@GOTPAGE
Lloh83:
	ldr	x8, [x8, _MVPP2_GMAC_FC_ADV_ASM_EN@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w28, w25, w8
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	bl	_phylink_autoneg_inband
Lloh85:
	adrp	x13, _MVPP2_GMAC_FORCE_LINK_PASS@GOTPAGE
Lloh86:
	ldr	x13, [x13, _MVPP2_GMAC_FORCE_LINK_PASS@GOTPAGEOFF]
Lloh87:
	adrp	x12, _MVPP2_GMAC_FORCE_LINK_DOWN@GOTPAGE
Lloh88:
	ldr	x12, [x12, _MVPP2_GMAC_FORCE_LINK_DOWN@GOTPAGEOFF]
	cbz	w0, LBB0_11
; %bb.7:
	ldr	x0, [x27]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.8:
	ldr	w8, [x12]
	ldr	w9, [x13]
	orr	w8, w9, w8
	bic	w8, w28, w8
Lloh89:
	adrp	x9, _MVPP2_GMAC_IN_BAND_AUTONEG@GOTPAGE
Lloh90:
	ldr	x9, [x9, _MVPP2_GMAC_IN_BAND_AUTONEG@GOTPAGEOFF]
Lloh91:
	ldr	w9, [x9]
Lloh92:
	adrp	x10, _MVPP2_GMAC_AN_SPEED_EN@GOTPAGE
Lloh93:
	ldr	x10, [x10, _MVPP2_GMAC_AN_SPEED_EN@GOTPAGEOFF]
Lloh94:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh95:
	adrp	x10, _MVPP2_GMAC_AN_DUPLEX_EN@GOTPAGE
Lloh96:
	ldr	x10, [x10, _MVPP2_GMAC_AN_DUPLEX_EN@GOTPAGEOFF]
Lloh97:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w28, w8, w10
	ldr	w8, [x27, #16]
Lloh98:
	adrp	x9, _MLO_PAUSE_TX@GOTPAGE
Lloh99:
	ldr	x9, [x9, _MLO_PAUSE_TX@GOTPAGEOFF]
Lloh100:
	ldr	w9, [x9]
Lloh101:
	adrp	x10, _MVPP22_CTRL4_TX_FC_EN@GOTPAGE
Lloh102:
	ldr	x10, [x10, _MVPP22_CTRL4_TX_FC_EN@GOTPAGEOFF]
Lloh103:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w26, w9, w26
Lloh104:
	adrp	x9, _MLO_PAUSE_RX@GOTPAGE
Lloh105:
	ldr	x9, [x9, _MLO_PAUSE_RX@GOTPAGEOFF]
Lloh106:
	ldr	w9, [x9]
	tst	w9, w8
Lloh107:
	adrp	x11, _MVPP2_GMAC_PORT_TYPE_MASK@GOTPAGE
Lloh108:
	ldr	x11, [x11, _MVPP2_GMAC_PORT_TYPE_MASK@GOTPAGEOFF]
	b.eq	LBB0_10
; %bb.9:
Lloh109:
	adrp	x8, _MVPP22_CTRL4_RX_FC_EN@GOTPAGE
Lloh110:
	ldr	x8, [x8, _MVPP22_CTRL4_RX_FC_EN@GOTPAGEOFF]
Lloh111:
	ldr	w8, [x8]
	orr	w26, w8, w26
LBB0_10:
Lloh112:
	adrp	x25, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGE
Lloh113:
	ldr	x25, [x25, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGEOFF]
	ldp	w0, w27, [sp, #12]              ; 8-byte Folded Reload
	b	LBB0_30
LBB0_11:
	ldr	x8, [x27, #32]
Lloh114:
	adrp	x9, _MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPAGE
Lloh115:
	ldr	x9, [x9, _MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPAGEOFF]
Lloh116:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w28, w8, w28
	ldr	x8, [x27, #8]
Lloh117:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh118:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh119:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh120:
	adrp	x11, _MVPP2_GMAC_PORT_TYPE_MASK@GOTPAGE
Lloh121:
	ldr	x11, [x11, _MVPP2_GMAC_PORT_TYPE_MASK@GOTPAGEOFF]
	b.eq	LBB0_21
; %bb.12:
Lloh122:
	adrp	x9, _SPEED_2500@GOTPAGE
Lloh123:
	ldr	x9, [x9, _SPEED_2500@GOTPAGEOFF]
Lloh124:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.13:
Lloh125:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh126:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh127:
	ldr	x9, [x9]
	cmp	x8, x9
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
Lloh128:
	adrp	x10, _MVPP22_CTRL4_TX_FC_EN@GOTPAGE
Lloh129:
	ldr	x10, [x10, _MVPP22_CTRL4_TX_FC_EN@GOTPAGEOFF]
	b.ne	LBB0_22
; %bb.14:
Lloh130:
	adrp	x8, _MVPP2_GMAC_CONFIG_MII_SPEED@GOTPAGE
Lloh131:
	ldr	x8, [x8, _MVPP2_GMAC_CONFIG_MII_SPEED@GOTPAGEOFF]
Lloh132:
	ldr	w8, [x8]
	orr	w28, w8, w28
	b	LBB0_22
LBB0_15:
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
	mov	x20, x13
Lloh133:
	adrp	x25, _MVPP22_CTRL4_RX_FC_EN@GOTPAGE
Lloh134:
	ldr	x25, [x25, _MVPP22_CTRL4_RX_FC_EN@GOTPAGEOFF]
	mov	x21, x12
	bl	_phy_interface_mode_is_8023z
	cbz	x0, LBB0_28
; %bb.16:
Lloh135:
	adrp	x11, _MVPP2_GMAC_PORT_TYPE_MASK@GOTPAGE
Lloh136:
	ldr	x11, [x11, _MVPP2_GMAC_PORT_TYPE_MASK@GOTPAGEOFF]
	ldr	w8, [x11]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	orr	w0, w8, w0
	mov	x12, x21
	ldr	w8, [x21]
	mov	x13, x20
	ldr	w9, [x20]
	orr	w8, w9, w8
	bic	w8, w28, w8
Lloh137:
	adrp	x9, _MVPP2_GMAC_IN_BAND_AUTONEG@GOTPAGE
Lloh138:
	ldr	x9, [x9, _MVPP2_GMAC_IN_BAND_AUTONEG@GOTPAGEOFF]
Lloh139:
	ldr	w9, [x9]
Lloh140:
	adrp	x10, _MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPAGE
Lloh141:
	ldr	x10, [x10, _MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPAGEOFF]
Lloh142:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh143:
	adrp	x10, _MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPAGE
Lloh144:
	ldr	x10, [x10, _MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPAGEOFF]
Lloh145:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w28, w8, w10
	ldr	w8, [x27, #16]
Lloh146:
	adrp	x9, _MLO_PAUSE_AN@GOTPAGE
Lloh147:
	ldr	x9, [x9, _MLO_PAUSE_AN@GOTPAGEOFF]
Lloh148:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.17:
	ldr	x9, [x27, #24]
	cbz	x9, LBB0_25
; %bb.18:
Lloh149:
	adrp	x8, _MVPP2_GMAC_FLOW_CTRL_AUTONEG@GOTPAGE
Lloh150:
	ldr	x8, [x8, _MVPP2_GMAC_FLOW_CTRL_AUTONEG@GOTPAGEOFF]
Lloh151:
	ldr	w8, [x8]
	orr	w28, w8, w28
	b	LBB0_27
LBB0_19:
	bl	_phy_interface_mode_is_rgmii
	cbz	x0, LBB0_6
; %bb.20:
Lloh152:
	adrp	x8, _MVPP22_CTRL4_DP_CLK_SEL@GOTPAGE
Lloh153:
	ldr	x8, [x8, _MVPP22_CTRL4_DP_CLK_SEL@GOTPAGEOFF]
Lloh154:
	ldr	w8, [x8]
	bic	w8, w26, w8
Lloh155:
	adrp	x9, _MVPP22_CTRL4_EXT_PIN_GMII_SEL@GOTPAGE
Lloh156:
	ldr	x9, [x9, _MVPP22_CTRL4_EXT_PIN_GMII_SEL@GOTPAGEOFF]
Lloh157:
	ldr	w9, [x9]
Lloh158:
	adrp	x10, _MVPP22_CTRL4_SYNC_BYPASS_DIS@GOTPAGE
Lloh159:
	ldr	x10, [x10, _MVPP22_CTRL4_SYNC_BYPASS_DIS@GOTPAGEOFF]
	b	LBB0_5
LBB0_21:
Lloh160:
	adrp	x8, _MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPAGE
Lloh161:
	ldr	x8, [x8, _MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPAGEOFF]
Lloh162:
	ldr	w8, [x8]
	orr	w28, w8, w28
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
Lloh163:
	adrp	x10, _MVPP22_CTRL4_TX_FC_EN@GOTPAGE
Lloh164:
	ldr	x10, [x10, _MVPP22_CTRL4_TX_FC_EN@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x27, #16]
Lloh165:
	adrp	x9, _MLO_PAUSE_TX@GOTPAGE
Lloh166:
	ldr	x9, [x9, _MLO_PAUSE_TX@GOTPAGEOFF]
Lloh167:
	ldr	w9, [x9]
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w26, w9, w26
Lloh168:
	adrp	x9, _MLO_PAUSE_RX@GOTPAGE
Lloh169:
	ldr	x9, [x9, _MLO_PAUSE_RX@GOTPAGEOFF]
Lloh170:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
Lloh171:
	adrp	x8, _MVPP22_CTRL4_RX_FC_EN@GOTPAGE
Lloh172:
	ldr	x8, [x8, _MVPP22_CTRL4_RX_FC_EN@GOTPAGEOFF]
Lloh173:
	ldr	w8, [x8]
	orr	w26, w8, w26
LBB0_24:
Lloh174:
	adrp	x25, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGE
Lloh175:
	ldr	x25, [x25, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGEOFF]
	ldr	w27, [sp, #16]                  ; 4-byte Folded Reload
	b	LBB0_30
LBB0_25:
Lloh176:
	adrp	x9, _MLO_PAUSE_TX@GOTPAGE
Lloh177:
	ldr	x9, [x9, _MLO_PAUSE_TX@GOTPAGEOFF]
Lloh178:
	ldr	w9, [x9]
Lloh179:
	adrp	x10, _MVPP22_CTRL4_TX_FC_EN@GOTPAGE
Lloh180:
	ldr	x10, [x10, _MVPP22_CTRL4_TX_FC_EN@GOTPAGEOFF]
Lloh181:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w26, w9, w26
Lloh182:
	adrp	x9, _MLO_PAUSE_RX@GOTPAGE
Lloh183:
	ldr	x9, [x9, _MLO_PAUSE_RX@GOTPAGEOFF]
Lloh184:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.26:
	ldr	w8, [x25]
	orr	w26, w8, w26
LBB0_27:
Lloh185:
	adrp	x25, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGE
Lloh186:
	ldr	x25, [x25, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGEOFF]
	ldr	w27, [sp, #16]                  ; 4-byte Folded Reload
	b	LBB0_29
LBB0_28:
Lloh187:
	adrp	x25, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGE
Lloh188:
	ldr	x25, [x25, _MVPP2_GMAC_AUTONEG_CONFIG@GOTPAGEOFF]
	ldp	w0, w27, [sp, #12]              ; 8-byte Folded Reload
Lloh189:
	adrp	x11, _MVPP2_GMAC_PORT_TYPE_MASK@GOTPAGE
Lloh190:
	ldr	x11, [x11, _MVPP2_GMAC_PORT_TYPE_MASK@GOTPAGEOFF]
	mov	x12, x21
	mov	x13, x20
LBB0_29:
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
LBB0_30:
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	eor	w8, w0, w8
	ldr	w9, [x11]
	tst	w9, w8
	b.ne	LBB0_33
; %bb.31:
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	eor	w8, w24, w8
Lloh191:
	adrp	x9, _MVPP2_GMAC_INBAND_AN_MASK@GOTPAGE
Lloh192:
	ldr	x9, [x9, _MVPP2_GMAC_INBAND_AN_MASK@GOTPAGEOFF]
Lloh193:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_33
; %bb.32:
	eor	w8, w28, w20
Lloh194:
	adrp	x9, _MVPP2_GMAC_IN_BAND_AUTONEG@GOTPAGE
Lloh195:
	ldr	x9, [x9, _MVPP2_GMAC_IN_BAND_AUTONEG@GOTPAGEOFF]
Lloh196:
	ldr	w9, [x9]
Lloh197:
	adrp	x10, _MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS@GOTPAGE
Lloh198:
	ldr	x10, [x10, _MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS@GOTPAGEOFF]
Lloh199:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh200:
	adrp	x10, _MVPP2_GMAC_CONFIG_MII_SPEED@GOTPAGE
Lloh201:
	ldr	x10, [x10, _MVPP2_GMAC_CONFIG_MII_SPEED@GOTPAGEOFF]
Lloh202:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh203:
	adrp	x10, _MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPAGE
Lloh204:
	ldr	x10, [x10, _MVPP2_GMAC_CONFIG_GMII_SPEED@GOTPAGEOFF]
Lloh205:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh206:
	adrp	x10, _MVPP2_GMAC_AN_SPEED_EN@GOTPAGE
Lloh207:
	ldr	x10, [x10, _MVPP2_GMAC_AN_SPEED_EN@GOTPAGEOFF]
Lloh208:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh209:
	adrp	x10, _MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPAGE
Lloh210:
	ldr	x10, [x10, _MVPP2_GMAC_CONFIG_FULL_DUPLEX@GOTPAGEOFF]
Lloh211:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh212:
	adrp	x10, _MVPP2_GMAC_AN_DUPLEX_EN@GOTPAGE
Lloh213:
	ldr	x10, [x10, _MVPP2_GMAC_AN_DUPLEX_EN@GOTPAGEOFF]
Lloh214:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_45
LBB0_33:
	ldr	w8, [x13]
	bic	w8, w20, w8
	ldr	w9, [x12]
	orr	w10, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x20, x24
	mov	x24, x0
	mov	x21, x10
	mov	x0, x10
	bl	_writel
	ldr	w8, [x22]
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	orr	w0, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x1, x9, x8
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	bl	_writel
	mov	x0, x24
	mov	x24, x20
LBB0_34:
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, w0
	b.eq	LBB0_36
; %bb.35:
	ldr	x8, [x19]
Lloh215:
	adrp	x9, _MVPP2_GMAC_CTRL_0_REG@GOTPAGE
Lloh216:
	ldr	x9, [x9, _MVPP2_GMAC_CTRL_0_REG@GOTPAGEOFF]
Lloh217:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_36:
	ldr	w20, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w20, w24
	b.ne	LBB0_43
; %bb.37:
	cmp	w27, w26
	b.ne	LBB0_44
LBB0_38:
	cmp	w21, w28
	b.eq	LBB0_40
LBB0_39:
	ldr	x8, [x19]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x28
	bl	_writel
LBB0_40:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_42
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_41
LBB0_42:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_43:
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x24
	bl	_writel
	cmp	w27, w26
	b.eq	LBB0_38
LBB0_44:
	ldr	x8, [x19]
Lloh218:
	adrp	x9, _MVPP22_GMAC_CTRL_4_REG@GOTPAGE
Lloh219:
	ldr	x9, [x9, _MVPP22_GMAC_CTRL_4_REG@GOTPAGEOFF]
Lloh220:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x26
	bl	_writel
	cmp	w21, w28
	b.ne	LBB0_39
	b	LBB0_40
LBB0_45:
	mov	x21, x20
	b	LBB0_34
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh78
	.loh AdrpLdrGot	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGot	Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGot	Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpLdrGot	Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGot	Lloh158, Lloh159
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGot	Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh160, Lloh161, Lloh162
	.loh AdrpLdrGotLdr	Lloh168, Lloh169, Lloh170
	.loh AdrpLdrGotLdr	Lloh165, Lloh166, Lloh167
	.loh AdrpLdrGotLdr	Lloh171, Lloh172, Lloh173
	.loh AdrpLdrGot	Lloh174, Lloh175
	.loh AdrpLdrGotLdr	Lloh182, Lloh183, Lloh184
	.loh AdrpLdrGotLdr	Lloh179, Lloh180, Lloh181
	.loh AdrpLdrGotLdr	Lloh176, Lloh177, Lloh178
	.loh AdrpLdrGot	Lloh185, Lloh186
	.loh AdrpLdrGot	Lloh189, Lloh190
	.loh AdrpLdrGot	Lloh187, Lloh188
	.loh AdrpLdrGotLdr	Lloh191, Lloh192, Lloh193
	.loh AdrpLdrGotLdr	Lloh212, Lloh213, Lloh214
	.loh AdrpLdrGotLdr	Lloh209, Lloh210, Lloh211
	.loh AdrpLdrGotLdr	Lloh206, Lloh207, Lloh208
	.loh AdrpLdrGotLdr	Lloh203, Lloh204, Lloh205
	.loh AdrpLdrGotLdr	Lloh200, Lloh201, Lloh202
	.loh AdrpLdrGotLdr	Lloh197, Lloh198, Lloh199
	.loh AdrpLdrGotLdr	Lloh194, Lloh195, Lloh196
	.loh AdrpLdrGotLdr	Lloh215, Lloh216, Lloh217
	.loh AdrpLdrGotLdr	Lloh218, Lloh219, Lloh220
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_GMAC_AUTONEG_CONFIG,8,3  ; @MVPP2_GMAC_AUTONEG_CONFIG
	.comm	_MVPP2_GMAC_CTRL_0_REG,8,3      ; @MVPP2_GMAC_CTRL_0_REG
	.comm	_MVPP2_GMAC_CTRL_2_REG,8,3      ; @MVPP2_GMAC_CTRL_2_REG
	.comm	_MVPP22_GMAC_CTRL_4_REG,8,3     ; @MVPP22_GMAC_CTRL_4_REG
	.comm	_MVPP2_GMAC_CONFIG_MII_SPEED,4,2 ; @MVPP2_GMAC_CONFIG_MII_SPEED
	.comm	_MVPP2_GMAC_CONFIG_GMII_SPEED,4,2 ; @MVPP2_GMAC_CONFIG_GMII_SPEED
	.comm	_MVPP2_GMAC_AN_SPEED_EN,4,2     ; @MVPP2_GMAC_AN_SPEED_EN
	.comm	_MVPP2_GMAC_FC_ADV_EN,4,2       ; @MVPP2_GMAC_FC_ADV_EN
	.comm	_MVPP2_GMAC_FC_ADV_ASM_EN,4,2   ; @MVPP2_GMAC_FC_ADV_ASM_EN
	.comm	_MVPP2_GMAC_FLOW_CTRL_AUTONEG,4,2 ; @MVPP2_GMAC_FLOW_CTRL_AUTONEG
	.comm	_MVPP2_GMAC_CONFIG_FULL_DUPLEX,4,2 ; @MVPP2_GMAC_CONFIG_FULL_DUPLEX
	.comm	_MVPP2_GMAC_AN_DUPLEX_EN,4,2    ; @MVPP2_GMAC_AN_DUPLEX_EN
	.comm	_MVPP2_GMAC_IN_BAND_AUTONEG,4,2 ; @MVPP2_GMAC_IN_BAND_AUTONEG
	.comm	_MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS,4,2 ; @MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS
	.comm	_MVPP2_GMAC_PORT_TYPE_MASK,4,2  ; @MVPP2_GMAC_PORT_TYPE_MASK
	.comm	_MVPP2_GMAC_INBAND_AN_MASK,4,2  ; @MVPP2_GMAC_INBAND_AN_MASK
	.comm	_MVPP2_GMAC_PORT_RESET_MASK,4,2 ; @MVPP2_GMAC_PORT_RESET_MASK
	.comm	_MVPP2_GMAC_PCS_ENABLE_MASK,4,2 ; @MVPP2_GMAC_PCS_ENABLE_MASK
	.comm	_MVPP22_CTRL4_RX_FC_EN,4,2      ; @MVPP22_CTRL4_RX_FC_EN
	.comm	_MVPP22_CTRL4_TX_FC_EN,4,2      ; @MVPP22_CTRL4_TX_FC_EN
	.comm	_MVPP22_CTRL4_EXT_PIN_GMII_SEL,4,2 ; @MVPP22_CTRL4_EXT_PIN_GMII_SEL
	.comm	_MVPP22_CTRL4_SYNC_BYPASS_DIS,4,2 ; @MVPP22_CTRL4_SYNC_BYPASS_DIS
	.comm	_MVPP22_CTRL4_DP_CLK_SEL,4,2    ; @MVPP22_CTRL4_DP_CLK_SEL
	.comm	_MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE,4,2 ; @MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_Pause,4,2                      ; @Pause
	.comm	_Asym_Pause,4,2                 ; @Asym_Pause
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_2500,8,3                 ; @SPEED_2500
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_MLO_PAUSE_TX,4,2               ; @MLO_PAUSE_TX
	.comm	_MLO_PAUSE_RX,4,2               ; @MLO_PAUSE_RX
	.comm	_MVPP2_GMAC_FORCE_LINK_DOWN,4,2 ; @MVPP2_GMAC_FORCE_LINK_DOWN
	.comm	_MVPP2_GMAC_FORCE_LINK_PASS,4,2 ; @MVPP2_GMAC_FORCE_LINK_PASS
	.comm	_MLO_PAUSE_AN,4,2               ; @MLO_PAUSE_AN
	.comm	_MVPP2_GMAC_AN_PORT_DOWN_MASK,4,2 ; @MVPP2_GMAC_AN_PORT_DOWN_MASK
	.no_dead_strip	_mvpp2_gmac_config
.subsections_via_symbols
