	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_slave
_init_slave:                            ## @init_slave
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	movq	%r15, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_26
LBB0_3:
	leaq	8(%r15), %r12
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	8(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movq	_SGMII_LINK_MAC_PHY@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r12)
	movq	%rcx, %rax
	jmp	LBB0_6
LBB0_4:
	movq	(%r12), %rax
	movq	_SGMII_LINK_MAC_PHY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_6:
	movq	%rbx, 48(%r15)
	movl	$0, 16(%r15)
	movq	_XGMII_LINK_MAC_PHY@GOTPCREL(%rip), %r12
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.7:
	movq	_RGMII_LINK_MAC_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	cmpq	(%r12), %rax
	jne	LBB0_10
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movl	%eax, 40(%r15)
LBB0_10:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_gbe_get_slave_port
	movl	%eax, 36(%r15)
	movq	8(%r15), %rax
	cmpq	(%r12), %rax
	jge	LBB0_11
## %bb.12:
	movq	_GBE_DEF_1G_MAC_CONTROL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_GBE_DEF_10G_MAC_CONTROL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_IS_SS_ID_VER_14
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leal	-2(%rbx), %edi
	cmpq	$2, (%r15)
	cmovll	%ebx, %edi
	movq	_GBE13_SLAVE_PORT_OFFSET@GOTPCREL(%rip), %rdx
	cmovgeq	_GBE13_SLAVE_PORT2_OFFSET@GOTPCREL(%rip), %rdx
	movl	$64, %eax
	movl	$48, %esi
	movq	_GBE13_EMAC_OFFSET@GOTPCREL(%rip), %rcx
	movl	%edi, %ebx
	jmp	LBB0_19
LBB0_15:
	movq	%r14, %rdi
	callq	_IS_SS_ID_MU
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	$4096, %eax                     ## imm = 0x1000
	movl	$4096, %esi                     ## imm = 0x1000
	movq	_GBENU_EMAC_OFFSET@GOTPCREL(%rip), %rcx
	movq	_GBENU_SLAVE_PORT_OFFSET@GOTPCREL(%rip), %rdx
	jmp	LBB0_19
LBB0_17:
	movq	%r14, %rdi
	callq	_IS_SS_ID_XGBE
	testq	%rax, %rax
	je	LBB0_27
## %bb.18:
	movl	$64, %eax
	movl	$48, %esi
	movq	_XGBE10_EMAC_OFFSET@GOTPCREL(%rip), %rcx
	movq	_XGBE10_SLAVE_PORT_OFFSET@GOTPCREL(%rip), %rdx
LBB0_19:
	imull	%esi, %ebx
	movl	(%r14), %esi
	addl	(%rdx), %ebx
	addl	%esi, %ebx
	addl	(%rcx), %esi
	movl	%ebx, 20(%r15)
	imull	(%r15), %eax
	addl	%esi, %eax
	movl	%eax, 24(%r15)
	movq	%r14, %rdi
	callq	_IS_SS_ID_VER_14
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_port_regs@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_port_vlan@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_tx_pri_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_sa_lo@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_sa_hi@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_ctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_seq_ltype@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_vlan@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_ctl_ltype2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_ctl2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movq	_emac_regs@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_mac_control@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_soft_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_rx_maxlen@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBE_SET_REG_OFS
	jmp	LBB0_25
LBB0_21:
	movq	%r14, %rdi
	callq	_IS_SS_ID_MU
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	_port_regs@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_port_vlan@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_tx_pri_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_rx_pri_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_sa_lo@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_sa_hi@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_ctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_seq_ltype@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_vlan@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_ctl_ltype2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_ctl2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_rx_maxlen@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movq	_emac_regs@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_mac_control@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_soft_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GBENU_SET_REG_OFS
	jmp	LBB0_25
LBB0_23:
	movq	%r14, %rdi
	callq	_IS_SS_ID_XGBE
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_port_regs@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_port_vlan@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_tx_pri_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_sa_lo@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_sa_hi@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_ctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_seq_ltype@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_vlan@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_ctl_ltype2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_ts_ctl2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movq	_emac_regs@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_mac_control@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_soft_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
	movl	(%rbx), %esi
	movq	_rx_maxlen@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_XGBE_SET_REG_OFS
LBB0_25:
	leaq	28(%r15), %rdi
	movq	_NETCP_LINK_STATE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	movq	%r15, %rdi
	callq	_init_slave_ts_ctl
	xorl	%ebx, %ebx
LBB0_26:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movl	4(%r14), %edx
	movl	8(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slave-port"

L_.str.1:                               ## @.str.1
	.asciz	"missing slave-port parameter\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"link-interface"

L_.str.3:                               ## @.str.3
	.asciz	"missing link-interface value defaulting to 1G mac-phy link\n"

	.comm	_SGMII_LINK_MAC_PHY,8,3         ## @SGMII_LINK_MAC_PHY
	.comm	_RGMII_LINK_MAC_PHY,8,3         ## @RGMII_LINK_MAC_PHY
	.comm	_XGMII_LINK_MAC_PHY,8,3         ## @XGMII_LINK_MAC_PHY
L_.str.4:                               ## @.str.4
	.asciz	"phy-handle"

	.comm	_GBE_DEF_10G_MAC_CONTROL,4,2    ## @GBE_DEF_10G_MAC_CONTROL
	.comm	_GBE_DEF_1G_MAC_CONTROL,4,2     ## @GBE_DEF_1G_MAC_CONTROL
	.comm	_GBE13_SLAVE_PORT2_OFFSET,4,2   ## @GBE13_SLAVE_PORT2_OFFSET
	.comm	_GBE13_SLAVE_PORT_OFFSET,4,2    ## @GBE13_SLAVE_PORT_OFFSET
	.comm	_GBE13_EMAC_OFFSET,4,2          ## @GBE13_EMAC_OFFSET
	.comm	_GBENU_SLAVE_PORT_OFFSET,4,2    ## @GBENU_SLAVE_PORT_OFFSET
	.comm	_GBENU_EMAC_OFFSET,4,2          ## @GBENU_EMAC_OFFSET
	.comm	_XGBE10_SLAVE_PORT_OFFSET,4,2   ## @XGBE10_SLAVE_PORT_OFFSET
	.comm	_XGBE10_EMAC_OFFSET,4,2         ## @XGBE10_EMAC_OFFSET
L_.str.5:                               ## @.str.5
	.asciz	"unknown ethss(0x%x)\n"

	.comm	_port_regs,4,2                  ## @port_regs
	.comm	_port_vlan,4,2                  ## @port_vlan
	.comm	_tx_pri_map,4,2                 ## @tx_pri_map
	.comm	_sa_lo,4,2                      ## @sa_lo
	.comm	_sa_hi,4,2                      ## @sa_hi
	.comm	_ts_ctl,4,2                     ## @ts_ctl
	.comm	_ts_seq_ltype,4,2               ## @ts_seq_ltype
	.comm	_ts_vlan,4,2                    ## @ts_vlan
	.comm	_ts_ctl_ltype2,4,2              ## @ts_ctl_ltype2
	.comm	_ts_ctl2,4,2                    ## @ts_ctl2
	.comm	_emac_regs,4,2                  ## @emac_regs
	.comm	_mac_control,4,2                ## @mac_control
	.comm	_soft_reset,4,2                 ## @soft_reset
	.comm	_rx_maxlen,4,2                  ## @rx_maxlen
	.comm	_rx_pri_map,4,2                 ## @rx_pri_map
	.comm	_NETCP_LINK_STATE_INVALID,4,2   ## @NETCP_LINK_STATE_INVALID
	.no_dead_strip	_init_slave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_slave
_init_slave:                            ; @init_slave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	mov	x2, x19
	bl	_of_property_read_u32
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_2:
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_3:
	add	x22, x19, #8
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_of_property_read_u32
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x20, #8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
Lloh11:
	adrp	x8, _SGMII_LINK_MAC_PHY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SGMII_LINK_MAC_PHY@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x8]
	str	x9, [x22]
	mov	x8, x9
	b	LBB0_6
LBB0_5:
	ldr	x8, [x22]
Lloh14:
	adrp	x9, _SGMII_LINK_MAC_PHY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SGMII_LINK_MAC_PHY@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
LBB0_6:
	str	x21, [x19, #48]
	str	wzr, [x19, #16]
Lloh17:
	adrp	x10, _RGMII_LINK_MAC_PHY@GOTPAGE
Lloh18:
	ldr	x10, [x10, _RGMII_LINK_MAC_PHY@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
Lloh20:
	adrp	x22, _XGMII_LINK_MAC_PHY@GOTPAGE
Lloh21:
	ldr	x22, [x22, _XGMII_LINK_MAC_PHY@GOTPAGEOFF]
	ldr	x11, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_8
; %bb.7:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	str	w0, [x19, #40]
LBB0_8:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_gbe_get_slave_port
	str	w0, [x19, #36]
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _GBE_DEF_1G_MAC_CONTROL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _GBE_DEF_1G_MAC_CONTROL@GOTPAGEOFF]
Lloh26:
	adrp	x10, _GBE_DEF_10G_MAC_CONTROL@GOTPAGE
Lloh27:
	ldr	x10, [x10, _GBE_DEF_10G_MAC_CONTROL@GOTPAGEOFF]
	ldr	x11, [x22]
	cmp	x8, x11
	csel	x8, x9, x10, lt
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	w21, [x19]
	mov	x0, x20
	bl	_IS_SS_ID_VER_14
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x19]
	sub	w9, w21, #2
Lloh28:
	adrp	x10, _GBE13_SLAVE_PORT_OFFSET@GOTPAGE
Lloh29:
	ldr	x10, [x10, _GBE13_SLAVE_PORT_OFFSET@GOTPAGEOFF]
Lloh30:
	adrp	x11, _GBE13_SLAVE_PORT2_OFFSET@GOTPAGE
Lloh31:
	ldr	x11, [x11, _GBE13_SLAVE_PORT2_OFFSET@GOTPAGEOFF]
	cmp	x8, #1
	csel	x10, x11, x10, gt
	csel	w21, w9, w21, gt
	mov	w8, #48
Lloh32:
	adrp	x9, _GBE13_EMAC_OFFSET@GOTPAGE
Lloh33:
	ldr	x9, [x9, _GBE13_EMAC_OFFSET@GOTPAGEOFF]
LBB0_10:
	mov	w11, #64
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_IS_SS_ID_MU
	cbz	x0, LBB0_17
; %bb.12:
	mov	w8, #4096
Lloh34:
	adrp	x9, _GBENU_EMAC_OFFSET@GOTPAGE
Lloh35:
	ldr	x9, [x9, _GBENU_EMAC_OFFSET@GOTPAGEOFF]
Lloh36:
	adrp	x10, _GBENU_SLAVE_PORT_OFFSET@GOTPAGE
Lloh37:
	ldr	x10, [x10, _GBENU_SLAVE_PORT_OFFSET@GOTPAGEOFF]
	mov	w11, #4096
LBB0_13:
	ldr	w10, [x10]
	ldr	w9, [x9]
	ldr	w12, [x20]
	madd	w8, w8, w21, w10
	add	w8, w8, w12
	add	w9, w12, w9
	ldr	w10, [x19]
	madd	w9, w10, w11, w9
	stp	w8, w9, [x19, #20]
	mov	x0, x20
	bl	_IS_SS_ID_VER_14
	cbz	x0, LBB0_15
; %bb.14:
Lloh38:
	adrp	x20, _port_regs@GOTPAGE
Lloh39:
	ldr	x20, [x20, _port_regs@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh40:
	adrp	x8, _port_vlan@GOTPAGE
Lloh41:
	ldr	x8, [x8, _port_vlan@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh43:
	adrp	x8, _tx_pri_map@GOTPAGE
Lloh44:
	ldr	x8, [x8, _tx_pri_map@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh46:
	adrp	x8, _sa_lo@GOTPAGE
Lloh47:
	ldr	x8, [x8, _sa_lo@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh49:
	adrp	x8, _sa_hi@GOTPAGE
Lloh50:
	ldr	x8, [x8, _sa_hi@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh52:
	adrp	x8, _ts_ctl@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ts_ctl@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh55:
	adrp	x8, _ts_seq_ltype@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ts_seq_ltype@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh58:
	adrp	x8, _ts_vlan@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ts_vlan@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh61:
	adrp	x8, _ts_ctl_ltype2@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ts_ctl_ltype2@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh64:
	adrp	x8, _ts_ctl2@GOTPAGE
Lloh65:
	ldr	x8, [x8, _ts_ctl2@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
Lloh67:
	adrp	x20, _emac_regs@GOTPAGE
Lloh68:
	ldr	x20, [x20, _emac_regs@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh69:
	adrp	x8, _mac_control@GOTPAGE
Lloh70:
	ldr	x8, [x8, _mac_control@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh72:
	adrp	x8, _soft_reset@GOTPAGE
Lloh73:
	ldr	x8, [x8, _soft_reset@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh75:
	adrp	x8, _rx_maxlen@GOTPAGE
Lloh76:
	ldr	x8, [x8, _rx_maxlen@GOTPAGEOFF]
Lloh77:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBE_SET_REG_OFS
	b	LBB0_21
LBB0_15:
	mov	x0, x20
	bl	_IS_SS_ID_MU
	cbz	x0, LBB0_19
; %bb.16:
Lloh78:
	adrp	x20, _port_regs@GOTPAGE
Lloh79:
	ldr	x20, [x20, _port_regs@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh80:
	adrp	x8, _port_vlan@GOTPAGE
Lloh81:
	ldr	x8, [x8, _port_vlan@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh83:
	adrp	x8, _tx_pri_map@GOTPAGE
Lloh84:
	ldr	x8, [x8, _tx_pri_map@GOTPAGEOFF]
Lloh85:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh86:
	adrp	x8, _rx_pri_map@GOTPAGE
Lloh87:
	ldr	x8, [x8, _rx_pri_map@GOTPAGEOFF]
Lloh88:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh89:
	adrp	x8, _sa_lo@GOTPAGE
Lloh90:
	ldr	x8, [x8, _sa_lo@GOTPAGEOFF]
Lloh91:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh92:
	adrp	x8, _sa_hi@GOTPAGE
Lloh93:
	ldr	x8, [x8, _sa_hi@GOTPAGEOFF]
Lloh94:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh95:
	adrp	x8, _ts_ctl@GOTPAGE
Lloh96:
	ldr	x8, [x8, _ts_ctl@GOTPAGEOFF]
Lloh97:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh98:
	adrp	x8, _ts_seq_ltype@GOTPAGE
Lloh99:
	ldr	x8, [x8, _ts_seq_ltype@GOTPAGEOFF]
Lloh100:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh101:
	adrp	x8, _ts_vlan@GOTPAGE
Lloh102:
	ldr	x8, [x8, _ts_vlan@GOTPAGEOFF]
Lloh103:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh104:
	adrp	x8, _ts_ctl_ltype2@GOTPAGE
Lloh105:
	ldr	x8, [x8, _ts_ctl_ltype2@GOTPAGEOFF]
Lloh106:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh107:
	adrp	x8, _ts_ctl2@GOTPAGE
Lloh108:
	ldr	x8, [x8, _ts_ctl2@GOTPAGEOFF]
Lloh109:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh110:
	adrp	x8, _rx_maxlen@GOTPAGE
Lloh111:
	ldr	x8, [x8, _rx_maxlen@GOTPAGEOFF]
Lloh112:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
Lloh113:
	adrp	x20, _emac_regs@GOTPAGE
Lloh114:
	ldr	x20, [x20, _emac_regs@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh115:
	adrp	x8, _mac_control@GOTPAGE
Lloh116:
	ldr	x8, [x8, _mac_control@GOTPAGEOFF]
Lloh117:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	ldr	w1, [x20]
Lloh118:
	adrp	x8, _soft_reset@GOTPAGE
Lloh119:
	ldr	x8, [x8, _soft_reset@GOTPAGEOFF]
Lloh120:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_GBENU_SET_REG_OFS
	b	LBB0_21
LBB0_17:
	mov	x0, x20
	bl	_IS_SS_ID_XGBE
	cbz	x0, LBB0_23
; %bb.18:
	mov	w8, #48
Lloh121:
	adrp	x9, _XGBE10_EMAC_OFFSET@GOTPAGE
Lloh122:
	ldr	x9, [x9, _XGBE10_EMAC_OFFSET@GOTPAGEOFF]
Lloh123:
	adrp	x10, _XGBE10_SLAVE_PORT_OFFSET@GOTPAGE
Lloh124:
	ldr	x10, [x10, _XGBE10_SLAVE_PORT_OFFSET@GOTPAGEOFF]
	b	LBB0_10
LBB0_19:
	mov	x0, x20
	bl	_IS_SS_ID_XGBE
	cbz	x0, LBB0_21
; %bb.20:
Lloh125:
	adrp	x20, _port_regs@GOTPAGE
Lloh126:
	ldr	x20, [x20, _port_regs@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh127:
	adrp	x8, _port_vlan@GOTPAGE
Lloh128:
	ldr	x8, [x8, _port_vlan@GOTPAGEOFF]
Lloh129:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh130:
	adrp	x8, _tx_pri_map@GOTPAGE
Lloh131:
	ldr	x8, [x8, _tx_pri_map@GOTPAGEOFF]
Lloh132:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh133:
	adrp	x8, _sa_lo@GOTPAGE
Lloh134:
	ldr	x8, [x8, _sa_lo@GOTPAGEOFF]
Lloh135:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh136:
	adrp	x8, _sa_hi@GOTPAGE
Lloh137:
	ldr	x8, [x8, _sa_hi@GOTPAGEOFF]
Lloh138:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh139:
	adrp	x8, _ts_ctl@GOTPAGE
Lloh140:
	ldr	x8, [x8, _ts_ctl@GOTPAGEOFF]
Lloh141:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh142:
	adrp	x8, _ts_seq_ltype@GOTPAGE
Lloh143:
	ldr	x8, [x8, _ts_seq_ltype@GOTPAGEOFF]
Lloh144:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh145:
	adrp	x8, _ts_vlan@GOTPAGE
Lloh146:
	ldr	x8, [x8, _ts_vlan@GOTPAGEOFF]
Lloh147:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh148:
	adrp	x8, _ts_ctl_ltype2@GOTPAGE
Lloh149:
	ldr	x8, [x8, _ts_ctl_ltype2@GOTPAGEOFF]
Lloh150:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh151:
	adrp	x8, _ts_ctl2@GOTPAGE
Lloh152:
	ldr	x8, [x8, _ts_ctl2@GOTPAGEOFF]
Lloh153:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
Lloh154:
	adrp	x20, _emac_regs@GOTPAGE
Lloh155:
	ldr	x20, [x20, _emac_regs@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh156:
	adrp	x8, _mac_control@GOTPAGE
Lloh157:
	ldr	x8, [x8, _mac_control@GOTPAGEOFF]
Lloh158:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh159:
	adrp	x8, _soft_reset@GOTPAGE
Lloh160:
	ldr	x8, [x8, _soft_reset@GOTPAGEOFF]
Lloh161:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
	ldr	w1, [x20]
Lloh162:
	adrp	x8, _rx_maxlen@GOTPAGE
Lloh163:
	ldr	x8, [x8, _rx_maxlen@GOTPAGEOFF]
Lloh164:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_XGBE_SET_REG_OFS
LBB0_21:
	add	x0, x19, #28
Lloh165:
	adrp	x8, _NETCP_LINK_STATE_INVALID@GOTPAGE
Lloh166:
	ldr	x8, [x8, _NETCP_LINK_STATE_INVALID@GOTPAGEOFF]
Lloh167:
	ldr	w1, [x8]
	bl	_atomic_set
	mov	x0, x19
	bl	_init_slave_ts_ctl
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_23:
	ldp	w8, w0, [x20, #4]
	str	x8, [sp]
Lloh168:
	adrp	x1, l_.str.5@PAGE
Lloh169:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh67, Lloh68
	.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 AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.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	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh123, Lloh124
	.loh AdrpLdrGot	Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGot	Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGot	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh165, Lloh166, Lloh167
	.loh AdrpAdd	Lloh168, Lloh169
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slave-port"

l_.str.1:                               ; @.str.1
	.asciz	"missing slave-port parameter\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"link-interface"

l_.str.3:                               ; @.str.3
	.asciz	"missing link-interface value defaulting to 1G mac-phy link\n"

	.comm	_SGMII_LINK_MAC_PHY,8,3         ; @SGMII_LINK_MAC_PHY
	.comm	_RGMII_LINK_MAC_PHY,8,3         ; @RGMII_LINK_MAC_PHY
	.comm	_XGMII_LINK_MAC_PHY,8,3         ; @XGMII_LINK_MAC_PHY
l_.str.4:                               ; @.str.4
	.asciz	"phy-handle"

	.comm	_GBE_DEF_10G_MAC_CONTROL,4,2    ; @GBE_DEF_10G_MAC_CONTROL
	.comm	_GBE_DEF_1G_MAC_CONTROL,4,2     ; @GBE_DEF_1G_MAC_CONTROL
	.comm	_GBE13_SLAVE_PORT2_OFFSET,4,2   ; @GBE13_SLAVE_PORT2_OFFSET
	.comm	_GBE13_SLAVE_PORT_OFFSET,4,2    ; @GBE13_SLAVE_PORT_OFFSET
	.comm	_GBE13_EMAC_OFFSET,4,2          ; @GBE13_EMAC_OFFSET
	.comm	_GBENU_SLAVE_PORT_OFFSET,4,2    ; @GBENU_SLAVE_PORT_OFFSET
	.comm	_GBENU_EMAC_OFFSET,4,2          ; @GBENU_EMAC_OFFSET
	.comm	_XGBE10_SLAVE_PORT_OFFSET,4,2   ; @XGBE10_SLAVE_PORT_OFFSET
	.comm	_XGBE10_EMAC_OFFSET,4,2         ; @XGBE10_EMAC_OFFSET
l_.str.5:                               ; @.str.5
	.asciz	"unknown ethss(0x%x)\n"

	.comm	_port_regs,4,2                  ; @port_regs
	.comm	_port_vlan,4,2                  ; @port_vlan
	.comm	_tx_pri_map,4,2                 ; @tx_pri_map
	.comm	_sa_lo,4,2                      ; @sa_lo
	.comm	_sa_hi,4,2                      ; @sa_hi
	.comm	_ts_ctl,4,2                     ; @ts_ctl
	.comm	_ts_seq_ltype,4,2               ; @ts_seq_ltype
	.comm	_ts_vlan,4,2                    ; @ts_vlan
	.comm	_ts_ctl_ltype2,4,2              ; @ts_ctl_ltype2
	.comm	_ts_ctl2,4,2                    ; @ts_ctl2
	.comm	_emac_regs,4,2                  ; @emac_regs
	.comm	_mac_control,4,2                ; @mac_control
	.comm	_soft_reset,4,2                 ; @soft_reset
	.comm	_rx_maxlen,4,2                  ; @rx_maxlen
	.comm	_rx_pri_map,4,2                 ; @rx_pri_map
	.comm	_NETCP_LINK_STATE_INVALID,4,2   ; @NETCP_LINK_STATE_INVALID
	.no_dead_strip	_init_slave
.subsections_via_symbols
