	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_slave_open
_cpsw_slave_open:                       ## @cpsw_slave_open
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rsi), %r12
	movl	32(%rdi), %edi
	movl	$100, %esi
	callq	_cpsw_sl_reset
	movl	32(%r15), %edi
	callq	_cpsw_sl_ctl_reset
	movl	32(%r15), %edi
	movq	_CPSW_SL_RX_PRI_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RX_PRIORITY_MAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_cpsw_sl_reg_write
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.cpsw_slave_open(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.cpsw_slave_open.2(%rip), %rdx
	movq	(%rdx,%rax,8), %rbx
	movq	_TX_PRIORITY_MAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rcx), %edx
	movq	%r15, %rdi
	callq	_slave_write
	movq	_CPSW_MAX_BLKS_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CPSW_MAX_BLKS_TX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	_CPSW_MAX_BLKS_RX@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_slave_write
LBB0_2:
	movl	32(%r15), %edi
	movq	_CPSW_SL_RX_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r12), %edx
	callq	_cpsw_sl_reg_write
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_cpsw_set_slave_mac
	movq	$0, 24(%r15)
	movl	(%r15), %edi
	callq	_cpsw_get_slave_port
	cmpq	$0, 16(%r12)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_cpsw_add_dual_emac_def_ale_entries
	jmp	LBB0_5
LBB0_4:
	movl	8(%r12), %edi
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movq	_ALE_MCAST_FWD_2@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_cpsw_ale_add_mcast
LBB0_5:
	movq	16(%r15), %rax
	movq	24(%rax), %rsi
	movq	8(%r14), %rdi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	movl	(%rax), %r8d
	movq	_cpsw_adjust_link@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movl	(%r14), %edi
	movq	16(%r15), %rax
	movl	24(%rax), %edx
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_8:
	movl	(%rax), %ecx
	movl	16(%rax), %esi
	movq	_cpsw_adjust_link@GOTPCREL(%rip), %rdx
	callq	_phy_connect
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movl	(%r14), %r14d
	movq	16(%r15), %rax
	movl	16(%rax), %r12d
	movl	(%r15), %r15d
	movq	%rbx, %rdi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_9:
	movq	%rbx, 8(%r15)
	movq	%rbx, %rdi
	callq	_phy_attached_info
	movq	8(%r15), %rdi
	callq	_phy_start
	movq	16(%r15), %rax
	movq	8(%rax), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	4(%r12), %edi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpsw_phy_sel                   ## TAILCALL
LBB0_12:
	movq	16(%r15), %rax
	movq	8(%rax), %rdi
	movq	_PHY_MODE_ETHERNET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_set_mode_ext               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPSW_SL_RX_PRI_MAP,4,2         ## @CPSW_SL_RX_PRI_MAP
	.comm	_RX_PRIORITY_MAPPING,4,2        ## @RX_PRIORITY_MAPPING
	.comm	_TX_PRIORITY_MAPPING,4,2        ## @TX_PRIORITY_MAPPING
	.comm	_CPSW1_TX_PRI_MAP,4,2           ## @CPSW1_TX_PRI_MAP
	.comm	_CPSW_MAX_BLKS_TX,4,2           ## @CPSW_MAX_BLKS_TX
	.comm	_CPSW_MAX_BLKS_TX_SHIFT,4,2     ## @CPSW_MAX_BLKS_TX_SHIFT
	.comm	_CPSW_MAX_BLKS_RX,4,2           ## @CPSW_MAX_BLKS_RX
	.comm	_CPSW1_MAX_BLKS,4,2             ## @CPSW1_MAX_BLKS
	.comm	_CPSW2_TX_PRI_MAP,4,2           ## @CPSW2_TX_PRI_MAP
	.comm	_CPSW2_MAX_BLKS,4,2             ## @CPSW2_MAX_BLKS
	.comm	_CPSW_SL_RX_MAXLEN,4,2          ## @CPSW_SL_RX_MAXLEN
	.comm	_ALE_MCAST_FWD_2,4,2            ## @ALE_MCAST_FWD_2
	.comm	_cpsw_adjust_link,4,2           ## @cpsw_adjust_link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy \"%pOF\" not found on slave %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"phy \"%s\" not found on slave %d, err %ld\n"

	.comm	_PHY_MODE_ETHERNET,4,2          ## @PHY_MODE_ETHERNET
	.no_dead_strip	_cpsw_slave_open
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.cpsw_slave_open
l_switch.table.cpsw_slave_open:
	.quad	_CPSW2_TX_PRI_MAP
	.quad	_CPSW2_TX_PRI_MAP
	.quad	_CPSW2_TX_PRI_MAP
	.quad	_CPSW1_TX_PRI_MAP

	.p2align	3                               ## @switch.table.cpsw_slave_open.2
l_switch.table.cpsw_slave_open.2:
	.quad	_CPSW2_MAX_BLKS
	.quad	_CPSW2_MAX_BLKS
	.quad	_CPSW2_MAX_BLKS
	.quad	_CPSW1_MAX_BLKS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpsw_slave_open
_cpsw_slave_open:                       ; @cpsw_slave_open
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x1, #16]
	ldr	w0, [x0, #32]
	mov	w1, #100
	bl	_cpsw_sl_reset
	ldr	w0, [x19, #32]
	bl	_cpsw_sl_ctl_reset
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x8, _CPSW_SL_RX_PRI_MAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPSW_SL_RX_PRI_MAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RX_PRIORITY_MAPPING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_PRIORITY_MAPPING@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_cpsw_sl_reg_write
	ldr	w8, [x22]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh6:
	adrp	x9, l_switch.table.cpsw_slave_open@PAGE
Lloh7:
	add	x9, x9, l_switch.table.cpsw_slave_open@PAGEOFF
	ldr	x9, [x9, x8]
Lloh8:
	adrp	x10, l_switch.table.cpsw_slave_open.2@PAGE
Lloh9:
	add	x10, x10, l_switch.table.cpsw_slave_open.2@PAGEOFF
	ldr	x21, [x10, x8]
Lloh10:
	adrp	x8, _TX_PRIORITY_MAPPING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TX_PRIORITY_MAPPING@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x9]
	mov	x0, x19
	bl	_slave_write
Lloh13:
	adrp	x8, _CPSW_MAX_BLKS_TX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CPSW_MAX_BLKS_TX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _CPSW_MAX_BLKS_TX_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CPSW_MAX_BLKS_TX_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh19:
	adrp	x9, _CPSW_MAX_BLKS_RX@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CPSW_MAX_BLKS_RX@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w2, [x21]
	mov	x0, x19
	bl	_slave_write
LBB0_2:
	ldr	w0, [x19, #32]
Lloh22:
	adrp	x8, _CPSW_SL_RX_MAXLEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CPSW_SL_RX_MAXLEN@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x22, #24]
	bl	_cpsw_sl_reg_write
	mov	x0, x19
	mov	x1, x20
	bl	_cpsw_set_slave_mac
	str	xzr, [x19, #24]
	ldr	w0, [x19]
	bl	_cpsw_get_slave_port
	mov	x2, x0
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_cpsw_add_dual_emac_def_ale_entries
	b	LBB0_5
LBB0_4:
	ldr	w0, [x22, #8]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	w8, #1
	lsl	w2, w8, w2
Lloh25:
	adrp	x8, _ALE_MCAST_FWD_2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ALE_MCAST_FWD_2@GOTPAGEOFF]
Lloh27:
	ldr	w5, [x8]
	mov	w3, #0
	mov	w4, #0
	bl	_cpsw_ale_add_mcast
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x1, [x8, #24]
	ldr	x0, [x20, #8]
	cbz	x1, LBB0_8
; %bb.6:
	ldr	w4, [x8]
Lloh28:
	adrp	x2, _cpsw_adjust_link@GOTPAGE
Lloh29:
	ldr	x2, [x2, _cpsw_adjust_link@GOTPAGEOFF]
	mov	w3, #0
	bl	_of_phy_connect
	mov	x21, x0
	cbnz	x0, LBB0_10
; %bb.7:
	ldr	w0, [x20]
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #24]
	ldr	w3, [x19]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
LBB0_8:
	ldr	w1, [x8, #16]
	ldr	w3, [x8]
Lloh32:
	adrp	x2, _cpsw_adjust_link@GOTPAGE
Lloh33:
	ldr	x2, [x2, _cpsw_adjust_link@GOTPAGEOFF]
	bl	_phy_connect
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w20, [x20]
	ldr	x8, [x19, #16]
	ldr	w22, [x8, #16]
	ldr	w19, [x19]
	mov	x0, x21
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	mov	x3, x19
	bl	_dev_err
	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_10:
	str	x21, [x19, #8]
	mov	x0, x21
	bl	_phy_attached_info
	ldr	x0, [x19, #8]
	bl	_phy_start
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x22, #4]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w2, [x19]
	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
	b	_cpsw_phy_sel
LBB0_12:
	ldr	x8, [x19, #16]
Lloh36:
	adrp	x9, _PHY_MODE_ETHERNET@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PHY_MODE_ETHERNET@GOTPAGEOFF]
	ldr	x0, [x8, #8]
Lloh38:
	ldr	w1, [x9]
	ldr	w2, [x8]
	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
	b	_phy_set_mode_ext
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_CPSW_SL_RX_PRI_MAP,4,2         ; @CPSW_SL_RX_PRI_MAP
	.comm	_RX_PRIORITY_MAPPING,4,2        ; @RX_PRIORITY_MAPPING
	.comm	_TX_PRIORITY_MAPPING,4,2        ; @TX_PRIORITY_MAPPING
	.comm	_CPSW1_TX_PRI_MAP,4,2           ; @CPSW1_TX_PRI_MAP
	.comm	_CPSW_MAX_BLKS_TX,4,2           ; @CPSW_MAX_BLKS_TX
	.comm	_CPSW_MAX_BLKS_TX_SHIFT,4,2     ; @CPSW_MAX_BLKS_TX_SHIFT
	.comm	_CPSW_MAX_BLKS_RX,4,2           ; @CPSW_MAX_BLKS_RX
	.comm	_CPSW1_MAX_BLKS,4,2             ; @CPSW1_MAX_BLKS
	.comm	_CPSW2_TX_PRI_MAP,4,2           ; @CPSW2_TX_PRI_MAP
	.comm	_CPSW2_MAX_BLKS,4,2             ; @CPSW2_MAX_BLKS
	.comm	_CPSW_SL_RX_MAXLEN,4,2          ; @CPSW_SL_RX_MAXLEN
	.comm	_ALE_MCAST_FWD_2,4,2            ; @ALE_MCAST_FWD_2
	.comm	_cpsw_adjust_link,4,2           ; @cpsw_adjust_link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy \"%pOF\" not found on slave %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"phy \"%s\" not found on slave %d, err %ld\n"

	.comm	_PHY_MODE_ETHERNET,4,2          ; @PHY_MODE_ETHERNET
	.no_dead_strip	_cpsw_slave_open
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cpsw_slave_open
l_switch.table.cpsw_slave_open:
	.quad	_CPSW2_TX_PRI_MAP
	.quad	_CPSW2_TX_PRI_MAP
	.quad	_CPSW2_TX_PRI_MAP
	.quad	_CPSW1_TX_PRI_MAP

	.p2align	3                               ; @switch.table.cpsw_slave_open.2
l_switch.table.cpsw_slave_open.2:
	.quad	_CPSW2_MAX_BLKS
	.quad	_CPSW2_MAX_BLKS
	.quad	_CPSW2_MAX_BLKS
	.quad	_CPSW1_MAX_BLKS

.subsections_via_symbols
