	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_stop
_mtk_stop:                              ## @mtk_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	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %r14
	movl	(%rax), %edi
	callq	_phylink_stop
	movq	%r15, %rdi
	callq	_netif_tx_disable
	movl	(%rbx), %edi
	callq	_phylink_disconnect_phy
	leaq	16(%r14), %rdi
	callq	_refcount_dec_and_test
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_MTK_TX_DONE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mtk_tx_irq_disable
	movq	_MTK_RX_DONE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mtk_rx_irq_disable
	leaq	12(%r14), %rdi
	callq	_napi_disable
	leaq	8(%r14), %rdi
	callq	_napi_disable
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_MTK_QDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MTK_HAS_CAPS
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_MTK_QDMA_GLO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mtk_stop_dma
LBB0_3:
	movq	_MTK_PDMA_GLO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mtk_stop_dma
	movq	%r14, %rdi
	callq	_mtk_dma_free
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_TX_DONE_INT,4,2            ## @MTK_TX_DONE_INT
	.comm	_MTK_RX_DONE_INT,4,2            ## @MTK_RX_DONE_INT
	.comm	_MTK_QDMA,4,2                   ## @MTK_QDMA
	.comm	_MTK_QDMA_GLO_CFG,4,2           ## @MTK_QDMA_GLO_CFG
	.comm	_MTK_PDMA_GLO_CFG,4,2           ## @MTK_PDMA_GLO_CFG
	.no_dead_strip	_mtk_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_stop
_mtk_stop:                              ; @mtk_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	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x0]
	bl	_phylink_stop
	mov	x0, x20
	bl	_netif_tx_disable
	ldr	w0, [x21]
	bl	_phylink_disconnect_phy
	add	x0, x19, #16
	bl	_refcount_dec_and_test
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MTK_TX_DONE_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTK_TX_DONE_INT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mtk_tx_irq_disable
Lloh3:
	adrp	x8, _MTK_RX_DONE_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTK_RX_DONE_INT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mtk_rx_irq_disable
	add	x0, x19, #12
	bl	_napi_disable
	add	x0, x19, #8
	bl	_napi_disable
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _MTK_QDMA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MTK_QDMA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_MTK_HAS_CAPS
	cbz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _MTK_QDMA_GLO_CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MTK_QDMA_GLO_CFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mtk_stop_dma
LBB0_3:
Lloh12:
	adrp	x8, _MTK_PDMA_GLO_CFG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MTK_PDMA_GLO_CFG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mtk_stop_dma
	mov	x0, x19
	bl	_mtk_dma_free
LBB0_4:
	mov	w0, #0
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_TX_DONE_INT,4,2            ; @MTK_TX_DONE_INT
	.comm	_MTK_RX_DONE_INT,4,2            ; @MTK_RX_DONE_INT
	.comm	_MTK_QDMA,4,2                   ; @MTK_QDMA
	.comm	_MTK_QDMA_GLO_CFG,4,2           ; @MTK_QDMA_GLO_CFG
	.comm	_MTK_PDMA_GLO_CFG,4,2           ; @MTK_PDMA_GLO_CFG
	.no_dead_strip	_mtk_stop
.subsections_via_symbols
