	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_stop
_mvneta_stop:                           ## @mvneta_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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpl	$0, 20(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mvneta_stop_dev
	movq	%rbx, %rdi
	callq	_mvneta_mdio_remove
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	jmp	LBB0_3
LBB0_1:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	$1, (%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	callq	_mvneta_stop_dev
	movq	%rbx, %rdi
	callq	_mvneta_mdio_remove
	movq	_online_hpstate@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_cpuhp_state_remove_instance_nocalls
	movq	_CPUHP_NET_MVNETA_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$8, %rsi
	callq	_cpuhp_state_remove_instance_nocalls
	movq	_mvneta_percpu_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_on_each_cpu
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	callq	_free_percpu_irq
LBB0_3:
	movq	%rbx, %rdi
	callq	_mvneta_cleanup_rxqs
	movq	%rbx, %rdi
	callq	_mvneta_cleanup_txqs
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_online_hpstate,4,2             ## @online_hpstate
	.comm	_CPUHP_NET_MVNETA_DEAD,4,2      ## @CPUHP_NET_MVNETA_DEAD
	.comm	_mvneta_percpu_disable,4,2      ## @mvneta_percpu_disable
	.no_dead_strip	_mvneta_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_stop
_mvneta_stop:                           ; @mvneta_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	x19, x0
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mvneta_stop_dev
	mov	x0, x19
	bl	_mvneta_mdio_remove
	ldr	w0, [x20]
	mov	x1, x19
	bl	_free_irq
	b	LBB0_3
LBB0_2:
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
	bl	_mvneta_stop_dev
	mov	x0, x19
	bl	_mvneta_mdio_remove
Lloh0:
	adrp	x8, _online_hpstate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _online_hpstate@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_cpuhp_state_remove_instance_nocalls
Lloh3:
	adrp	x8, _CPUHP_NET_MVNETA_DEAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPUHP_NET_MVNETA_DEAD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_cpuhp_state_remove_instance_nocalls
Lloh6:
	adrp	x8, _mvneta_percpu_disable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mvneta_percpu_disable@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #1
	bl	_on_each_cpu
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
	bl	_free_percpu_irq
LBB0_3:
	mov	x0, x19
	bl	_mvneta_cleanup_rxqs
	mov	x0, x19
	bl	_mvneta_cleanup_txqs
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_online_hpstate,4,2             ; @online_hpstate
	.comm	_CPUHP_NET_MVNETA_DEAD,4,2      ; @CPUHP_NET_MVNETA_DEAD
	.comm	_mvneta_percpu_disable,4,2      ; @mvneta_percpu_disable
	.no_dead_strip	_mvneta_stop
.subsections_via_symbols
