	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv643xx_eth_stop
_mv643xx_eth_stop:                      ## @mv643xx_eth_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, %r15
	movq	_INT_MASK_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wrlp
	movq	_INT_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wrlp
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_rdlp
	leaq	32(%r15), %rdi
	callq	_napi_disable
	leaq	28(%r15), %rdi
	callq	_del_timer_sync
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_phy_stop
LBB0_2:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	%r15, %rdi
	callq	_port_reset
	movq	%r14, %rdi
	callq	_mv643xx_eth_get_stats
	movq	%r15, %rdi
	callq	_mib_counters_update
	movq	%r15, %rdi
	addq	$24, %rdi
	callq	_del_timer_sync
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	callq	_rxq_deinit
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	cmpl	$0, 4(%r15)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	callq	_txq_deinit
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MASK_EXT,4,2               ## @INT_MASK_EXT
	.comm	_INT_MASK,4,2                   ## @INT_MASK
	.no_dead_strip	_mv643xx_eth_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv643xx_eth_stop
_mv643xx_eth_stop:                      ; @mv643xx_eth_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
Lloh0:
	adrp	x8, _INT_MASK_EXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MASK_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_wrlp
Lloh3:
	adrp	x21, _INT_MASK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _INT_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_wrlp
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rdlp
	add	x0, x19, #32
	bl	_napi_disable
	add	x0, x19, #28
	bl	_del_timer_sync
	mov	x0, x20
	bl	_netif_carrier_off
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phy_stop
LBB0_2:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	mov	x0, x19
	bl	_port_reset
	mov	x0, x20
	bl	_mv643xx_eth_get_stats
	mov	x0, x19
	bl	_mib_counters_update
	add	x0, x19, #24
	bl	_del_timer_sync
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x20, x8
	bl	_rxq_deinit
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x20, x8
	bl	_txq_deinit
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.lt	LBB0_7
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MASK_EXT,4,2               ; @INT_MASK_EXT
	.comm	_INT_MASK,4,2                   ; @INT_MASK
	.no_dead_strip	_mv643xx_eth_stop
.subsections_via_symbols
