	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocelot_port_stop
_ocelot_port_stop:                      ## @ocelot_port_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_phy_disconnect
	movq	$0, (%r14)
	movq	_DEV_MAC_ENA_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ocelot_port_writel
	movl	(%rbx), %r8d
	movl	4(%rbx), %edi
	movq	_QSYS_SWITCH_PORT_MODE_PORT_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_QSYS_SWITCH_PORT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_ocelot_rmw_rix
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_MAC_ENA_CFG,4,2            ## @DEV_MAC_ENA_CFG
	.comm	_QSYS_SWITCH_PORT_MODE_PORT_ENA,4,2 ## @QSYS_SWITCH_PORT_MODE_PORT_ENA
	.comm	_QSYS_SWITCH_PORT_MODE,4,2      ## @QSYS_SWITCH_PORT_MODE
	.no_dead_strip	_ocelot_port_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocelot_port_stop
_ocelot_port_stop:                      ; @ocelot_port_stop
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_phy_disconnect
	str	xzr, [x19]
Lloh0:
	adrp	x8, _DEV_MAC_ENA_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEV_MAC_ENA_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_ocelot_port_writel
Lloh3:
	adrp	x8, _QSYS_SWITCH_PORT_MODE_PORT_ENA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QSYS_SWITCH_PORT_MODE_PORT_ENA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _QSYS_SWITCH_PORT_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QSYS_SWITCH_PORT_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	ldp	w4, w0, [x20]
	mov	w1, #0
	bl	_ocelot_rmw_rix
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_MAC_ENA_CFG,4,2            ; @DEV_MAC_ENA_CFG
	.comm	_QSYS_SWITCH_PORT_MODE_PORT_ENA,4,2 ; @QSYS_SWITCH_PORT_MODE_PORT_ENA
	.comm	_QSYS_SWITCH_PORT_MODE,4,2      ; @QSYS_SWITCH_PORT_MODE
	.no_dead_strip	_ocelot_port_stop
.subsections_via_symbols
