	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_slave_stop
_cpsw_slave_stop:                       ## @cpsw_slave_stop
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_cpsw_get_slave_port
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	callq	_phy_stop
	movq	8(%rbx), %rdi
	callq	_phy_disconnect
	movq	$0, 8(%rbx)
	movl	(%r15), %edi
	movq	_ALE_PORT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ALE_PORT_STATE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	callq	_cpsw_ale_control_set
	movl	(%rbx), %edi
	movl	$100, %esi
	callq	_cpsw_sl_reset
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpsw_sl_ctl_reset              ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALE_PORT_STATE,4,2             ## @ALE_PORT_STATE
	.comm	_ALE_PORT_STATE_DISABLE,4,2     ## @ALE_PORT_STATE_DISABLE
	.no_dead_strip	_cpsw_slave_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpsw_slave_stop
_cpsw_slave_stop:                       ; @cpsw_slave_stop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_cpsw_get_slave_port
	mov	x20, x0
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phy_stop
	ldr	x0, [x19, #8]
	bl	_phy_disconnect
	str	xzr, [x19, #8]
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _ALE_PORT_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALE_PORT_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _ALE_PORT_STATE_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALE_PORT_STATE_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_cpsw_ale_control_set
	ldr	w0, [x19]
	mov	w1, #100
	bl	_cpsw_sl_reset
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cpsw_sl_ctl_reset
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ALE_PORT_STATE,4,2             ; @ALE_PORT_STATE
	.comm	_ALE_PORT_STATE_DISABLE,4,2     ; @ALE_PORT_STATE_DISABLE
	.no_dead_strip	_cpsw_slave_stop
.subsections_via_symbols
