	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_stop
_mvpp2_stop:                            ## @mvpp2_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
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mvpp2_stop_dev
	movq	_mvpp2_interrupts_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_on_each_cpu
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mvpp2_shared_interrupt_mask_unmask
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_phylink_disconnect_phy
LBB0_2:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	%r14, %rsi
	callq	_free_irq
LBB0_4:
	movq	%r14, %rdi
	callq	_mvpp2_irqs_deinit
	cmpl	$0, 16(%r14)
	jne	LBB0_8
## %bb.5:
	movq	8(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movl	%ebx, %esi
	callq	_per_cpu_ptr
	movq	%rax, %r15
	leaq	4(%rax), %rdi
	callq	_hrtimer_cancel
	movl	$0, (%r15)
	incl	%ebx
	movq	8(%r14), %rax
	cmpl	(%rax), %ebx
	jb	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_mvpp2_cleanup_rxqs
	movq	%r14, %rdi
	callq	_mvpp2_cleanup_txqs
	movq	%r14, %rdi
	callq	_cancel_delayed_work_sync
	movq	%r14, %rdi
	callq	_mvpp2_mac_reset_assert
	movq	%r14, %rdi
	callq	_mvpp22_pcs_reset_assert
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mvpp2_interrupts_mask,4,2      ## @mvpp2_interrupts_mask
	.no_dead_strip	_mvpp2_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_stop
_mvpp2_stop:                            ; @mvpp2_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
	bl	_netdev_priv
	mov	x19, x0
	bl	_mvpp2_stop_dev
Lloh0:
	adrp	x8, _mvpp2_interrupts_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mvpp2_interrupts_mask@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #1
	bl	_on_each_cpu
	mov	x0, x19
	mov	w1, #1
	bl	_mvpp2_shared_interrupt_mask_unmask
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phylink_disconnect_phy
LBB0_2:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x19
	bl	_free_irq
LBB0_4:
	mov	x0, x19
	bl	_mvpp2_irqs_deinit
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_8
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.6:
	mov	w20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_per_cpu_ptr
	mov	x21, x0
	add	x0, x0, #4
	bl	_hrtimer_cancel
	str	wzr, [x21]
	add	w20, w20, #1
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w20, w8
	b.lo	LBB0_7
LBB0_8:
	mov	x0, x19
	bl	_mvpp2_cleanup_rxqs
	mov	x0, x19
	bl	_mvpp2_cleanup_txqs
	mov	x0, x19
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	bl	_mvpp2_mac_reset_assert
	mov	x0, x19
	bl	_mvpp22_pcs_reset_assert
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mvpp2_interrupts_mask,4,2      ; @mvpp2_interrupts_mask
	.no_dead_strip	_mvpp2_stop
.subsections_via_symbols
