	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_mac_init
_sky2_mac_init:                         ## @sky2_mac_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	24(%rdi), %rax
	movl	%esi, %ebx
	movq	(%rax,%rbx,8), %rdi
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rbx,8), %rax
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_GPHY_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_GPC_RST_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movl	(%rbx), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_GPC_RST_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	_GMAC_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_GMC_RST_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	(%r13), %rax
	movq	_CHIP_ID_YUKON_XL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.2:
	movq	_CHIP_REV_YU_XL_A0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%r13)
	jne	LBB0_7
## %bb.3:
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_SK_REG
	movq	_GMC_RST_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	_GMC_RST_SET@GOTPCREL(%rip), %r12
	movq	_PHY_MARV_ID0@GOTPCREL(%rip), %r14
	movq	_PHY_MARV_ID0_VAL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	$1, %edi
	callq	_SK_REG
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movl	(%rbx), %esi
	movl	$1, %edi
	callq	_SK_REG
	movq	_GMC_RST_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_gm_phy_read
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PHY_MARV_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_gm_phy_read
	movq	_PHY_MARV_ID1_Y2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PHY_MARV_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_gm_phy_read
	testq	%rax, %rax
	jne	LBB0_4
LBB0_7:
	movq	_GMAC_IRQ_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_SK_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_read16
	movq	_GMAC_IRQ_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_GMAC_DEF_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_sky2_phy_power_up
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_sky2_phy_init
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_GM_PHY_ADDR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_gma_read16
	movl	%eax, %r12d
	movl	(%rbx), %edx
	movq	_GM_PAR_MIB_CLR@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	orl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_gma_write16
	movq	_GM_MIB_CNT_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GM_MIB_CNT_END@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jg	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_gma_read16
	addl	$4, %ebx
	cmpl	(%r15), %ebx
	jle	LBB0_8
LBB0_10:
	movq	_GM_PHY_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %ecx
	callq	_gma_write16
	movq	_GM_TX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_TX_COL_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TX_COL_THR
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_gma_write16
	movq	_GM_RX_CTRL@GOTPCREL(%rip), %rax
	movq	_GM_RXCR_UCF_ENA@GOTPCREL(%rip), %rdx
	movq	_GM_RXCR_CRC_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movq	_GM_RXCR_MCF_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_gma_write16
	movq	_GM_TX_FLOW_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_gma_write16
	movq	_GM_TX_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_TX_JAM_LEN_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TX_JAM_LEN_VAL
	movl	%eax, %ebx
	movq	_TX_JAM_IPG_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TX_JAM_IPG_VAL
	orl	%eax, %ebx
	movq	_TX_IPG_JAM_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TX_IPG_JAM_DATA
	movl	%eax, %r15d
	movq	_TX_BOF_LIM_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TX_BACK_OFF_LIM
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_gma_write16
	movq	_DATA_BLIND_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DATA_BLIND_VAL
	movl	%eax, %ebx
	movq	_GM_SMOD_VLAN_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_IPG_DATA_DEF_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IPG_DATA_VAL
	orl	%ebx, %eax
	movq	(%r13), %rcx
	movq	24(%r13), %rdx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rdx,%rsi,8), %rdx
	movq	(%rdx), %rsi
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	cmpq	(%rdi), %rsi
	movl	%r14d, %r12d
	jle	LBB0_12
## %bb.11:
	movq	_GM_SMOD_JUMBO_ENA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_12:
	orl	%edx, %eax
	movq	_CHIP_ID_YUKON_EC_U@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.13:
	movq	8(%r13), %rcx
	movq	_CHIP_REV_YU_EC_U_B1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.14:
	movq	_GM_NEW_FLOW_CTRL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_15:
	movq	_GM_SERIAL_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	callq	_gma_write16
	movq	_GM_SRC_ADDR_2L@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_gma_set_addr
	movq	_GM_SRC_ADDR_1L@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rcx
	callq	_gma_set_addr
	movq	_GM_TX_IRQ_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_gma_write16
	movq	_GM_RX_IRQ_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_gma_write16
	movq	_GM_TR_IRQ_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_gma_write16
	movq	_RX_GMF_CTRL_T@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%r12d, %edi
	callq	_SK_REG
	movq	_GMF_RST_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movq	_GMF_OPER_ON@GOTPCREL(%rip), %rcx
	movq	_GMF_RX_F_FL_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	(%r13), %rcx
	movq	_CHIP_ID_YUKON_FE_P@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	_CHIP_ID_YUKON_EX@GOTPCREL(%rip), %rdx
	movq	_GMF_RX_OVER_ON@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	$0, %ebx
	cmovel	%esi, %ebx
	cmpq	(%rdx), %rcx
	cmovel	%esi, %ebx
	orl	%eax, %ebx
	movl	(%r14), %esi
	movl	%r12d, %edi
	callq	_SK_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sky2_write32
	movq	(%r13), %r14
	movq	_CHIP_ID_YUKON_XL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_RX_GMF_FL_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_SK_REG
	cmpq	%rbx, %r14
	je	LBB0_17
## %bb.16:
	movq	_GMR_FS_ANY_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_17:
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_sky2_write16
	movq	_RX_GMF_FL_THR_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	incl	%r15d
	movq	(%r13), %rax
	movq	_CHIP_ID_YUKON_FE_P@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_19
## %bb.18:
	movq	8(%r13), %rax
	movq	_CHIP_REV_YU_FE2_A0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$376, %eax                      ## imm = 0x178
	cmovel	%eax, %r15d
LBB0_19:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_RX_GMF_FL_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_SK_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_sky2_write16
	movq	_TX_GMF_CTRL_T@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_SK_REG
	movq	_GMF_RST_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_SK_REG
	movq	_GMF_OPER_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_write16
	movq	_SKY2_HW_RAM_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	jne	LBB0_24
## %bb.20:
	movq	(%r13), %rax
	cmpq	(%r12), %rax
	jne	LBB0_22
## %bb.21:
	movq	8(%r13), %rax
	movq	_CHIP_REV_YU_FE2_A0@GOTPCREL(%rip), %rcx
	movl	$196, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_23
LBB0_22:
	movl	$128, %r14d
LBB0_23:
	movq	_RX_GMF_UP_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_SK_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_sky2_write16
	movq	_RX_GMF_LP_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_SK_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$96, %edx
	callq	_sky2_write16
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_sky2_set_tx_stfwd
LBB0_24:
	movq	(%r13), %rax
	cmpq	(%r12), %rax
	jne	LBB0_26
## %bb.25:
	movq	8(%r13), %rax
	movq	_CHIP_REV_YU_FE2_A0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.27:
	movl	%ebx, %r15d
	movq	_TX_GMF_EA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_SK_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sky2_read16
	movq	_TX_DYN_WM_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r14), %esi
	movl	%r15d, %edi
	callq	_SK_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sky2_write16                   ## TAILCALL
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPHY_CTRL,4,2                  ## @GPHY_CTRL
	.comm	_GPC_RST_SET,4,2                ## @GPC_RST_SET
	.comm	_GPC_RST_CLR,4,2                ## @GPC_RST_CLR
	.comm	_GMAC_CTRL,4,2                  ## @GMAC_CTRL
	.comm	_GMC_RST_CLR,4,2                ## @GMC_RST_CLR
	.comm	_CHIP_ID_YUKON_XL,8,3           ## @CHIP_ID_YUKON_XL
	.comm	_CHIP_REV_YU_XL_A0,8,3          ## @CHIP_REV_YU_XL_A0
	.comm	_GMC_RST_SET,4,2                ## @GMC_RST_SET
	.comm	_PHY_MARV_ID0,4,2               ## @PHY_MARV_ID0
	.comm	_PHY_MARV_ID0_VAL,8,3           ## @PHY_MARV_ID0_VAL
	.comm	_PHY_MARV_ID1,4,2               ## @PHY_MARV_ID1
	.comm	_PHY_MARV_ID1_Y2,8,3            ## @PHY_MARV_ID1_Y2
	.comm	_PHY_MARV_INT_MASK,4,2          ## @PHY_MARV_INT_MASK
	.comm	_GMAC_IRQ_SRC,4,2               ## @GMAC_IRQ_SRC
	.comm	_GMAC_IRQ_MSK,4,2               ## @GMAC_IRQ_MSK
	.comm	_GMAC_DEF_MSK,4,2               ## @GMAC_DEF_MSK
	.comm	_GM_PHY_ADDR,4,2                ## @GM_PHY_ADDR
	.comm	_GM_PAR_MIB_CLR,4,2             ## @GM_PAR_MIB_CLR
	.comm	_GM_MIB_CNT_BASE,4,2            ## @GM_MIB_CNT_BASE
	.comm	_GM_MIB_CNT_END,4,2             ## @GM_MIB_CNT_END
	.comm	_GM_TX_CTRL,4,2                 ## @GM_TX_CTRL
	.comm	_TX_COL_DEF,4,2                 ## @TX_COL_DEF
	.comm	_GM_RX_CTRL,4,2                 ## @GM_RX_CTRL
	.comm	_GM_RXCR_UCF_ENA,4,2            ## @GM_RXCR_UCF_ENA
	.comm	_GM_RXCR_CRC_DIS,4,2            ## @GM_RXCR_CRC_DIS
	.comm	_GM_RXCR_MCF_ENA,4,2            ## @GM_RXCR_MCF_ENA
	.comm	_GM_TX_FLOW_CTRL,4,2            ## @GM_TX_FLOW_CTRL
	.comm	_GM_TX_PARAM,4,2                ## @GM_TX_PARAM
	.comm	_TX_JAM_LEN_DEF,4,2             ## @TX_JAM_LEN_DEF
	.comm	_TX_JAM_IPG_DEF,4,2             ## @TX_JAM_IPG_DEF
	.comm	_TX_IPG_JAM_DEF,4,2             ## @TX_IPG_JAM_DEF
	.comm	_TX_BOF_LIM_DEF,4,2             ## @TX_BOF_LIM_DEF
	.comm	_DATA_BLIND_DEF,4,2             ## @DATA_BLIND_DEF
	.comm	_GM_SMOD_VLAN_ENA,4,2           ## @GM_SMOD_VLAN_ENA
	.comm	_IPG_DATA_DEF_1000,4,2          ## @IPG_DATA_DEF_1000
	.comm	_ETH_DATA_LEN,8,3               ## @ETH_DATA_LEN
	.comm	_GM_SMOD_JUMBO_ENA,4,2          ## @GM_SMOD_JUMBO_ENA
	.comm	_CHIP_ID_YUKON_EC_U,8,3         ## @CHIP_ID_YUKON_EC_U
	.comm	_CHIP_REV_YU_EC_U_B1,8,3        ## @CHIP_REV_YU_EC_U_B1
	.comm	_GM_NEW_FLOW_CTRL,4,2           ## @GM_NEW_FLOW_CTRL
	.comm	_GM_SERIAL_MODE,4,2             ## @GM_SERIAL_MODE
	.comm	_GM_SRC_ADDR_2L,4,2             ## @GM_SRC_ADDR_2L
	.comm	_GM_SRC_ADDR_1L,4,2             ## @GM_SRC_ADDR_1L
	.comm	_GM_TX_IRQ_MSK,4,2              ## @GM_TX_IRQ_MSK
	.comm	_GM_RX_IRQ_MSK,4,2              ## @GM_RX_IRQ_MSK
	.comm	_GM_TR_IRQ_MSK,4,2              ## @GM_TR_IRQ_MSK
	.comm	_RX_GMF_CTRL_T,4,2              ## @RX_GMF_CTRL_T
	.comm	_GMF_RST_CLR,4,2                ## @GMF_RST_CLR
	.comm	_GMF_OPER_ON,4,2                ## @GMF_OPER_ON
	.comm	_GMF_RX_F_FL_ON,4,2             ## @GMF_RX_F_FL_ON
	.comm	_CHIP_ID_YUKON_EX,8,3           ## @CHIP_ID_YUKON_EX
	.comm	_CHIP_ID_YUKON_FE_P,8,3         ## @CHIP_ID_YUKON_FE_P
	.comm	_GMF_RX_OVER_ON,4,2             ## @GMF_RX_OVER_ON
	.comm	_RX_GMF_FL_MSK,4,2              ## @RX_GMF_FL_MSK
	.comm	_GMR_FS_ANY_ERR,4,2             ## @GMR_FS_ANY_ERR
	.comm	_RX_GMF_FL_THR_DEF,4,2          ## @RX_GMF_FL_THR_DEF
	.comm	_CHIP_REV_YU_FE2_A0,8,3         ## @CHIP_REV_YU_FE2_A0
	.comm	_RX_GMF_FL_THR,4,2              ## @RX_GMF_FL_THR
	.comm	_TX_GMF_CTRL_T,4,2              ## @TX_GMF_CTRL_T
	.comm	_SKY2_HW_RAM_BUFFER,4,2         ## @SKY2_HW_RAM_BUFFER
	.comm	_RX_GMF_UP_THR,4,2              ## @RX_GMF_UP_THR
	.comm	_RX_GMF_LP_THR,4,2              ## @RX_GMF_LP_THR
	.comm	_TX_GMF_EA,4,2                  ## @TX_GMF_EA
	.comm	_TX_DYN_WM_ENA,4,2              ## @TX_DYN_WM_ENA
	.no_dead_strip	_sky2_mac_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_mac_init
_sky2_mac_init:                         ; @sky2_mac_init
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	mov	w9, w1
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	lsl	x21, x9, #3
	ldr	x0, [x8, x21]
	bl	_netdev_priv
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21]
	ldr	x8, [x8, #8]
	stp	x8, x0, [sp, #8]                ; 16-byte Folded Spill
Lloh0:
	adrp	x21, _GPHY_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GPHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh2:
	adrp	x8, _GPC_RST_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPC_RST_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write8
	ldr	w1, [x21]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh5:
	adrp	x8, _GPC_RST_CLR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPC_RST_CLR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write8
Lloh8:
	adrp	x23, _GMAC_CTRL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _GMAC_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh10:
	adrp	x26, _GMC_RST_CLR@GOTPAGE
Lloh11:
	ldr	x26, [x26, _GMC_RST_CLR@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_sky2_write8
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _CHIP_ID_YUKON_XL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHIP_ID_YUKON_XL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	cmp	w20, #1
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _CHIP_REV_YU_XL_A0@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CHIP_REV_YU_XL_A0@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	w1, [x23]
	mov	w0, #0
	bl	_SK_REG
	mov	x1, x0
	ldr	w2, [x26]
	mov	x0, x19
	bl	_sky2_write8
Lloh18:
	adrp	x27, _GMC_RST_SET@GOTPAGE
Lloh19:
	ldr	x27, [x27, _GMC_RST_SET@GOTPAGEOFF]
Lloh20:
	adrp	x28, _PHY_MARV_ID0@GOTPAGE
Lloh21:
	ldr	x28, [x28, _PHY_MARV_ID0@GOTPAGEOFF]
Lloh22:
	adrp	x24, _PHY_MARV_ID0_VAL@GOTPAGE
Lloh23:
	ldr	x24, [x24, _PHY_MARV_ID0_VAL@GOTPAGEOFF]
Lloh24:
	adrp	x21, _PHY_MARV_ID1@GOTPAGE
Lloh25:
	ldr	x21, [x21, _PHY_MARV_ID1@GOTPAGEOFF]
Lloh26:
	adrp	x25, _PHY_MARV_ID1_Y2@GOTPAGE
Lloh27:
	ldr	x25, [x25, _PHY_MARV_ID1_Y2@GOTPAGEOFF]
Lloh28:
	adrp	x22, _PHY_MARV_INT_MASK@GOTPAGE
Lloh29:
	ldr	x22, [x22, _PHY_MARV_INT_MASK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	w0, #1
	bl	_SK_REG
	mov	x1, x0
	ldr	w2, [x27]
	mov	x0, x19
	bl	_sky2_write8
	ldr	w1, [x23]
	mov	w0, #1
	bl	_SK_REG
	mov	x1, x0
	ldr	w2, [x26]
	mov	x0, x19
	bl	_sky2_write8
	ldr	w2, [x28]
	mov	x0, x19
	mov	w1, #1
	bl	_gm_phy_read
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #1
	bl	_gm_phy_read
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #1
	bl	_gm_phy_read
	cbnz	x0, LBB0_4
LBB0_7:
Lloh30:
	adrp	x8, _GMAC_IRQ_SRC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GMAC_IRQ_SRC@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x19
	bl	_sky2_read16
Lloh33:
	adrp	x8, _GMAC_IRQ_MSK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GMAC_IRQ_MSK@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh36:
	adrp	x8, _GMAC_DEF_MSK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GMAC_DEF_MSK@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write8
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x21
	bl	_spin_lock_bh
	mov	x0, x19
	mov	x1, x20
	bl	_sky2_phy_power_up
	mov	x0, x19
	mov	x1, x20
	bl	_sky2_phy_init
	mov	x0, x21
	bl	_spin_unlock_bh
Lloh39:
	adrp	x21, _GM_PHY_ADDR@GOTPAGE
Lloh40:
	ldr	x21, [x21, _GM_PHY_ADDR@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_gma_read16
	mov	x22, x0
	ldr	w2, [x21]
Lloh41:
	adrp	x8, _GM_PAR_MIB_CLR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GM_PAR_MIB_CLR@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	orr	w3, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_gma_write16
Lloh44:
	adrp	x8, _GM_MIB_CNT_BASE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GM_MIB_CNT_BASE@GOTPAGEOFF]
Lloh46:
	ldr	w23, [x8]
Lloh47:
	adrp	x24, _GM_MIB_CNT_END@GOTPAGE
Lloh48:
	ldr	x24, [x24, _GM_MIB_CNT_END@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w23, w8
	b.gt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_gma_read16
	add	w23, w23, #4
	b	LBB0_8
LBB0_10:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	bl	_gma_write16
Lloh49:
	adrp	x8, _GM_TX_CTRL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _GM_TX_CTRL@GOTPAGEOFF]
Lloh51:
	ldr	w22, [x8]
Lloh52:
	adrp	x8, _TX_COL_DEF@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TX_COL_DEF@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_TX_COL_THR
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_gma_write16
Lloh55:
	adrp	x8, _GM_RX_CTRL@GOTPAGE
Lloh56:
	ldr	x8, [x8, _GM_RX_CTRL@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
Lloh58:
	adrp	x8, _GM_RXCR_UCF_ENA@GOTPAGE
Lloh59:
	ldr	x8, [x8, _GM_RXCR_UCF_ENA@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
Lloh61:
	adrp	x9, _GM_RXCR_CRC_DIS@GOTPAGE
Lloh62:
	ldr	x9, [x9, _GM_RXCR_CRC_DIS@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh64:
	adrp	x9, _GM_RXCR_MCF_ENA@GOTPAGE
Lloh65:
	ldr	x9, [x9, _GM_RXCR_MCF_ENA@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_gma_write16
Lloh67:
	adrp	x8, _GM_TX_FLOW_CTRL@GOTPAGE
Lloh68:
	ldr	x8, [x8, _GM_TX_FLOW_CTRL@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #65535
	bl	_gma_write16
Lloh70:
	adrp	x8, _GM_TX_PARAM@GOTPAGE
Lloh71:
	ldr	x8, [x8, _GM_TX_PARAM@GOTPAGEOFF]
Lloh72:
	ldr	w22, [x8]
Lloh73:
	adrp	x8, _TX_JAM_LEN_DEF@GOTPAGE
Lloh74:
	ldr	x8, [x8, _TX_JAM_LEN_DEF@GOTPAGEOFF]
Lloh75:
	ldr	w0, [x8]
	bl	_TX_JAM_LEN_VAL
	mov	x23, x0
Lloh76:
	adrp	x8, _TX_JAM_IPG_DEF@GOTPAGE
Lloh77:
	ldr	x8, [x8, _TX_JAM_IPG_DEF@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
	bl	_TX_JAM_IPG_VAL
	orr	w21, w0, w23
Lloh79:
	adrp	x8, _TX_IPG_JAM_DEF@GOTPAGE
Lloh80:
	ldr	x8, [x8, _TX_IPG_JAM_DEF@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	bl	_TX_IPG_JAM_DATA
	orr	w21, w21, w0
Lloh82:
	adrp	x8, _TX_BOF_LIM_DEF@GOTPAGE
Lloh83:
	ldr	x8, [x8, _TX_BOF_LIM_DEF@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	bl	_TX_BACK_OFF_LIM
	orr	w3, w21, w0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_gma_write16
Lloh85:
	adrp	x8, _DATA_BLIND_DEF@GOTPAGE
Lloh86:
	ldr	x8, [x8, _DATA_BLIND_DEF@GOTPAGEOFF]
Lloh87:
	ldr	w0, [x8]
	bl	_DATA_BLIND_VAL
Lloh88:
	adrp	x8, _GM_SMOD_VLAN_ENA@GOTPAGE
Lloh89:
	ldr	x8, [x8, _GM_SMOD_VLAN_ENA@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
	orr	w21, w8, w0
Lloh91:
	adrp	x8, _IPG_DATA_DEF_1000@GOTPAGE
Lloh92:
	ldr	x8, [x8, _IPG_DATA_DEF_1000@GOTPAGEOFF]
Lloh93:
	ldr	w0, [x8]
	bl	_IPG_DATA_VAL
	orr	w8, w21, w0
	ldr	x9, [x19, #24]
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x9, [x9, x10, lsl #3]
	ldr	x9, [x9]
Lloh94:
	adrp	x10, _ETH_DATA_LEN@GOTPAGE
Lloh95:
	ldr	x10, [x10, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh96:
	ldr	x10, [x10]
Lloh97:
	adrp	x11, _GM_SMOD_JUMBO_ENA@GOTPAGE
Lloh98:
	ldr	x11, [x11, _GM_SMOD_JUMBO_ENA@GOTPAGEOFF]
Lloh99:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, w11, wzr, gt
	orr	w3, w8, w9
	ldr	x8, [x19]
Lloh100:
	adrp	x9, _CHIP_ID_YUKON_EC_U@GOTPAGE
Lloh101:
	ldr	x9, [x9, _CHIP_ID_YUKON_EC_U@GOTPAGEOFF]
Lloh102:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x19, #8]
Lloh103:
	adrp	x9, _CHIP_REV_YU_EC_U_B1@GOTPAGE
Lloh104:
	ldr	x9, [x9, _CHIP_REV_YU_EC_U_B1@GOTPAGEOFF]
Lloh105:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh106:
	adrp	x24, _CHIP_ID_YUKON_XL@GOTPAGE
Lloh107:
	ldr	x24, [x24, _CHIP_ID_YUKON_XL@GOTPAGEOFF]
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b.ne	LBB0_14
; %bb.12:
Lloh108:
	adrp	x8, _GM_NEW_FLOW_CTRL@GOTPAGE
Lloh109:
	ldr	x8, [x8, _GM_NEW_FLOW_CTRL@GOTPAGEOFF]
Lloh110:
	ldr	w8, [x8]
	orr	w3, w8, w3
	b	LBB0_14
LBB0_13:
Lloh111:
	adrp	x24, _CHIP_ID_YUKON_XL@GOTPAGE
Lloh112:
	ldr	x24, [x24, _CHIP_ID_YUKON_XL@GOTPAGEOFF]
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
LBB0_14:
Lloh113:
	adrp	x8, _GM_SERIAL_MODE@GOTPAGE
Lloh114:
	ldr	x8, [x8, _GM_SERIAL_MODE@GOTPAGEOFF]
Lloh115:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_gma_write16
Lloh116:
	adrp	x8, _GM_SRC_ADDR_2L@GOTPAGE
Lloh117:
	ldr	x8, [x8, _GM_SRC_ADDR_2L@GOTPAGEOFF]
Lloh118:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_gma_set_addr
Lloh119:
	adrp	x8, _GM_SRC_ADDR_1L@GOTPAGE
Lloh120:
	ldr	x8, [x8, _GM_SRC_ADDR_1L@GOTPAGEOFF]
Lloh121:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_gma_set_addr
Lloh122:
	adrp	x8, _GM_TX_IRQ_MSK@GOTPAGE
Lloh123:
	ldr	x8, [x8, _GM_TX_IRQ_MSK@GOTPAGEOFF]
Lloh124:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_gma_write16
Lloh125:
	adrp	x8, _GM_RX_IRQ_MSK@GOTPAGE
Lloh126:
	ldr	x8, [x8, _GM_RX_IRQ_MSK@GOTPAGEOFF]
Lloh127:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_gma_write16
Lloh128:
	adrp	x8, _GM_TR_IRQ_MSK@GOTPAGE
Lloh129:
	ldr	x8, [x8, _GM_TR_IRQ_MSK@GOTPAGEOFF]
Lloh130:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_gma_write16
Lloh131:
	adrp	x23, _RX_GMF_CTRL_T@GOTPAGE
Lloh132:
	ldr	x23, [x23, _RX_GMF_CTRL_T@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh133:
	adrp	x26, _GMF_RST_CLR@GOTPAGE
Lloh134:
	ldr	x26, [x26, _GMF_RST_CLR@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_sky2_write8
Lloh135:
	adrp	x25, _GMF_OPER_ON@GOTPAGE
Lloh136:
	ldr	x25, [x25, _GMF_OPER_ON@GOTPAGEOFF]
Lloh137:
	adrp	x8, _GMF_RX_F_FL_ON@GOTPAGE
Lloh138:
	ldr	x8, [x8, _GMF_RX_F_FL_ON@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh139:
	ldr	w8, [x8]
	orr	w8, w8, w9
	ldr	x9, [x19]
Lloh140:
	adrp	x10, _CHIP_ID_YUKON_EX@GOTPAGE
Lloh141:
	ldr	x10, [x10, _CHIP_ID_YUKON_EX@GOTPAGEOFF]
Lloh142:
	ldr	x10, [x10]
Lloh143:
	adrp	x22, _CHIP_ID_YUKON_FE_P@GOTPAGE
Lloh144:
	ldr	x22, [x22, _CHIP_ID_YUKON_FE_P@GOTPAGEOFF]
	ldr	x11, [x22]
	cmp	x9, x11
	ccmp	x9, x10, #4, ne
Lloh145:
	adrp	x9, _GMF_RX_OVER_ON@GOTPAGE
Lloh146:
	ldr	x9, [x9, _GMF_RX_OVER_ON@GOTPAGEOFF]
Lloh147:
	ldr	w9, [x9]
	csel	w9, w9, wzr, eq
	orr	w21, w8, w9
	ldr	w1, [x23]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_sky2_write32
	ldr	x21, [x19]
	ldr	x23, [x24]
Lloh148:
	adrp	x8, _RX_GMF_FL_MSK@GOTPAGE
Lloh149:
	ldr	x8, [x8, _RX_GMF_FL_MSK@GOTPAGEOFF]
Lloh150:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh151:
	adrp	x8, _GMR_FS_ANY_ERR@GOTPAGE
Lloh152:
	ldr	x8, [x8, _GMR_FS_ANY_ERR@GOTPAGEOFF]
Lloh153:
	ldr	w8, [x8]
	cmp	x21, x23
	csel	w2, wzr, w8, eq
	mov	x0, x19
	bl	_sky2_write16
Lloh154:
	adrp	x8, _RX_GMF_FL_THR_DEF@GOTPAGE
Lloh155:
	ldr	x8, [x8, _RX_GMF_FL_THR_DEF@GOTPAGEOFF]
Lloh156:
	ldr	w8, [x8]
	add	w21, w8, #1
	ldr	x8, [x19]
	ldr	x9, [x22]
Lloh157:
	adrp	x23, _CHIP_REV_YU_FE2_A0@GOTPAGE
Lloh158:
	ldr	x23, [x23, _CHIP_REV_YU_FE2_A0@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	mov	w8, #376
	csel	w21, w8, w21, eq
LBB0_16:
Lloh159:
	adrp	x8, _RX_GMF_FL_THR@GOTPAGE
Lloh160:
	ldr	x8, [x8, _RX_GMF_FL_THR@GOTPAGEOFF]
Lloh161:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_sky2_write16
Lloh162:
	adrp	x21, _TX_GMF_CTRL_T@GOTPAGE
Lloh163:
	ldr	x21, [x21, _TX_GMF_CTRL_T@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	ldr	w2, [x26]
	mov	x0, x19
	bl	_sky2_write8
	ldr	w1, [x21]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	ldr	w2, [x25]
	mov	x0, x19
	bl	_sky2_write16
	ldr	w8, [x19, #16]
Lloh164:
	adrp	x9, _SKY2_HW_RAM_BUFFER@GOTPAGE
Lloh165:
	ldr	x9, [x9, _SKY2_HW_RAM_BUFFER@GOTPAGEOFF]
Lloh166:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_22
; %bb.17:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.18:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	mov	w21, #196
	b	LBB0_21
LBB0_20:
	mov	w21, #128
LBB0_21:
Lloh167:
	adrp	x8, _RX_GMF_UP_THR@GOTPAGE
Lloh168:
	ldr	x8, [x8, _RX_GMF_UP_THR@GOTPAGEOFF]
Lloh169:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_sky2_write16
Lloh170:
	adrp	x8, _RX_GMF_LP_THR@GOTPAGE
Lloh171:
	ldr	x8, [x8, _RX_GMF_LP_THR@GOTPAGEOFF]
Lloh172:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x19
	mov	w2, #96
	bl	_sky2_write16
	mov	x0, x19
	mov	x1, x20
	bl	_sky2_set_tx_stfwd
LBB0_22:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.23:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.24:
Lloh173:
	adrp	x22, _TX_GMF_EA@GOTPAGE
Lloh174:
	ldr	x22, [x22, _TX_GMF_EA@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x19
	bl	_sky2_read16
Lloh175:
	adrp	x8, _TX_DYN_WM_ENA@GOTPAGE
Lloh176:
	ldr	x8, [x8, _TX_DYN_WM_ENA@GOTPAGEOFF]
Lloh177:
	ldr	w8, [x8]
	bic	w21, w0, w8
	ldr	w1, [x22]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	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
	b	_sky2_write16
LBB0_25:
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpLdrGot	Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGot	Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpLdrGot	Lloh135, Lloh136
	.loh AdrpLdrGot	Lloh133, Lloh134
	.loh AdrpLdrGot	Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh164, Lloh165, Lloh166
	.loh AdrpLdrGot	Lloh162, Lloh163
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh170, Lloh171, Lloh172
	.loh AdrpLdrGotLdr	Lloh167, Lloh168, Lloh169
	.loh AdrpLdrGotLdr	Lloh175, Lloh176, Lloh177
	.loh AdrpLdrGot	Lloh173, Lloh174
	.cfi_endproc
                                        ; -- End function
	.comm	_GPHY_CTRL,4,2                  ; @GPHY_CTRL
	.comm	_GPC_RST_SET,4,2                ; @GPC_RST_SET
	.comm	_GPC_RST_CLR,4,2                ; @GPC_RST_CLR
	.comm	_GMAC_CTRL,4,2                  ; @GMAC_CTRL
	.comm	_GMC_RST_CLR,4,2                ; @GMC_RST_CLR
	.comm	_CHIP_ID_YUKON_XL,8,3           ; @CHIP_ID_YUKON_XL
	.comm	_CHIP_REV_YU_XL_A0,8,3          ; @CHIP_REV_YU_XL_A0
	.comm	_GMC_RST_SET,4,2                ; @GMC_RST_SET
	.comm	_PHY_MARV_ID0,4,2               ; @PHY_MARV_ID0
	.comm	_PHY_MARV_ID0_VAL,8,3           ; @PHY_MARV_ID0_VAL
	.comm	_PHY_MARV_ID1,4,2               ; @PHY_MARV_ID1
	.comm	_PHY_MARV_ID1_Y2,8,3            ; @PHY_MARV_ID1_Y2
	.comm	_PHY_MARV_INT_MASK,4,2          ; @PHY_MARV_INT_MASK
	.comm	_GMAC_IRQ_SRC,4,2               ; @GMAC_IRQ_SRC
	.comm	_GMAC_IRQ_MSK,4,2               ; @GMAC_IRQ_MSK
	.comm	_GMAC_DEF_MSK,4,2               ; @GMAC_DEF_MSK
	.comm	_GM_PHY_ADDR,4,2                ; @GM_PHY_ADDR
	.comm	_GM_PAR_MIB_CLR,4,2             ; @GM_PAR_MIB_CLR
	.comm	_GM_MIB_CNT_BASE,4,2            ; @GM_MIB_CNT_BASE
	.comm	_GM_MIB_CNT_END,4,2             ; @GM_MIB_CNT_END
	.comm	_GM_TX_CTRL,4,2                 ; @GM_TX_CTRL
	.comm	_TX_COL_DEF,4,2                 ; @TX_COL_DEF
	.comm	_GM_RX_CTRL,4,2                 ; @GM_RX_CTRL
	.comm	_GM_RXCR_UCF_ENA,4,2            ; @GM_RXCR_UCF_ENA
	.comm	_GM_RXCR_CRC_DIS,4,2            ; @GM_RXCR_CRC_DIS
	.comm	_GM_RXCR_MCF_ENA,4,2            ; @GM_RXCR_MCF_ENA
	.comm	_GM_TX_FLOW_CTRL,4,2            ; @GM_TX_FLOW_CTRL
	.comm	_GM_TX_PARAM,4,2                ; @GM_TX_PARAM
	.comm	_TX_JAM_LEN_DEF,4,2             ; @TX_JAM_LEN_DEF
	.comm	_TX_JAM_IPG_DEF,4,2             ; @TX_JAM_IPG_DEF
	.comm	_TX_IPG_JAM_DEF,4,2             ; @TX_IPG_JAM_DEF
	.comm	_TX_BOF_LIM_DEF,4,2             ; @TX_BOF_LIM_DEF
	.comm	_DATA_BLIND_DEF,4,2             ; @DATA_BLIND_DEF
	.comm	_GM_SMOD_VLAN_ENA,4,2           ; @GM_SMOD_VLAN_ENA
	.comm	_IPG_DATA_DEF_1000,4,2          ; @IPG_DATA_DEF_1000
	.comm	_ETH_DATA_LEN,8,3               ; @ETH_DATA_LEN
	.comm	_GM_SMOD_JUMBO_ENA,4,2          ; @GM_SMOD_JUMBO_ENA
	.comm	_CHIP_ID_YUKON_EC_U,8,3         ; @CHIP_ID_YUKON_EC_U
	.comm	_CHIP_REV_YU_EC_U_B1,8,3        ; @CHIP_REV_YU_EC_U_B1
	.comm	_GM_NEW_FLOW_CTRL,4,2           ; @GM_NEW_FLOW_CTRL
	.comm	_GM_SERIAL_MODE,4,2             ; @GM_SERIAL_MODE
	.comm	_GM_SRC_ADDR_2L,4,2             ; @GM_SRC_ADDR_2L
	.comm	_GM_SRC_ADDR_1L,4,2             ; @GM_SRC_ADDR_1L
	.comm	_GM_TX_IRQ_MSK,4,2              ; @GM_TX_IRQ_MSK
	.comm	_GM_RX_IRQ_MSK,4,2              ; @GM_RX_IRQ_MSK
	.comm	_GM_TR_IRQ_MSK,4,2              ; @GM_TR_IRQ_MSK
	.comm	_RX_GMF_CTRL_T,4,2              ; @RX_GMF_CTRL_T
	.comm	_GMF_RST_CLR,4,2                ; @GMF_RST_CLR
	.comm	_GMF_OPER_ON,4,2                ; @GMF_OPER_ON
	.comm	_GMF_RX_F_FL_ON,4,2             ; @GMF_RX_F_FL_ON
	.comm	_CHIP_ID_YUKON_EX,8,3           ; @CHIP_ID_YUKON_EX
	.comm	_CHIP_ID_YUKON_FE_P,8,3         ; @CHIP_ID_YUKON_FE_P
	.comm	_GMF_RX_OVER_ON,4,2             ; @GMF_RX_OVER_ON
	.comm	_RX_GMF_FL_MSK,4,2              ; @RX_GMF_FL_MSK
	.comm	_GMR_FS_ANY_ERR,4,2             ; @GMR_FS_ANY_ERR
	.comm	_RX_GMF_FL_THR_DEF,4,2          ; @RX_GMF_FL_THR_DEF
	.comm	_CHIP_REV_YU_FE2_A0,8,3         ; @CHIP_REV_YU_FE2_A0
	.comm	_RX_GMF_FL_THR,4,2              ; @RX_GMF_FL_THR
	.comm	_TX_GMF_CTRL_T,4,2              ; @TX_GMF_CTRL_T
	.comm	_SKY2_HW_RAM_BUFFER,4,2         ; @SKY2_HW_RAM_BUFFER
	.comm	_RX_GMF_UP_THR,4,2              ; @RX_GMF_UP_THR
	.comm	_RX_GMF_LP_THR,4,2              ; @RX_GMF_LP_THR
	.comm	_TX_GMF_EA,4,2                  ; @TX_GMF_EA
	.comm	_TX_DYN_WM_ENA,4,2              ; @TX_DYN_WM_ENA
	.no_dead_strip	_sky2_mac_init
.subsections_via_symbols
