	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arc_emac_stop
_arc_emac_stop:                         ## @arc_emac_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_napi_disable
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movl	(%rbx), %edi
	callq	_phy_stop
	movq	_R_ENABLE@GOTPCREL(%rip), %rax
	movq	_RXINT_MASK@GOTPCREL(%rip), %rcx
	movq	_TXINT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_ERR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_arc_reg_clr
	movq	_R_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_arc_reg_clr
	movq	%rbx, %rdi
	callq	_arc_free_tx_queue
	movq	%rbx, %rdi
	callq	_arc_free_rx_queue
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_ENABLE,4,2                   ## @R_ENABLE
	.comm	_RXINT_MASK,4,2                 ## @RXINT_MASK
	.comm	_TXINT_MASK,4,2                 ## @TXINT_MASK
	.comm	_ERR_MASK,4,2                   ## @ERR_MASK
	.comm	_R_CTRL,4,2                     ## @R_CTRL
	.comm	_EN_MASK,4,2                    ## @EN_MASK
	.no_dead_strip	_arc_emac_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arc_emac_stop
_arc_emac_stop:                         ; @arc_emac_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
	bl	_napi_disable
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w0, [x19]
	bl	_phy_stop
Lloh0:
	adrp	x8, _R_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RXINT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXINT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TXINT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TXINT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ERR_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ERR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_arc_reg_clr
Lloh12:
	adrp	x8, _R_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _EN_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EN_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_arc_reg_clr
	mov	x0, x19
	bl	_arc_free_tx_queue
	mov	x0, x19
	bl	_arc_free_rx_queue
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R_ENABLE,4,2                   ; @R_ENABLE
	.comm	_RXINT_MASK,4,2                 ; @RXINT_MASK
	.comm	_TXINT_MASK,4,2                 ; @TXINT_MASK
	.comm	_ERR_MASK,4,2                   ; @ERR_MASK
	.comm	_R_CTRL,4,2                     ; @R_CTRL
	.comm	_EN_MASK,4,2                    ; @EN_MASK
	.no_dead_strip	_arc_emac_stop
.subsections_via_symbols
