	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa2_eth_stop
_dpaa2_eth_stop:                        ## @dpaa2_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movl	$0, -36(%rbp)
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r12, %rdi
	callq	_wait_for_egress_fq_empty
	movl	$-10, %ebx
	leaq	-36(%rbp), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movl	4(%r12), %edi
	xorl	%esi, %esi
	callq	_dpni_disable
	movl	(%r12), %edx
	movl	4(%r12), %edi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_dpni_is_enabled
	cmpl	$0, -36(%rbp)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$100, %edi
	callq	_msleep
	cmpl	$0, -36(%rbp)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	jne	LBB0_1
	jmp	LBB0_5
LBB0_4:
	testl	%ebx, %ebx
	jne	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
LBB0_6:
	movq	%r12, %rdi
	callq	_wait_for_ingress_fq_empty
	movq	%r12, %rdi
	callq	_disable_ch_napi
	movq	%r12, %rdi
	callq	_drain_pool
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Retry count exceeded disabling DPNI\n"

	.no_dead_strip	_dpaa2_eth_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa2_eth_stop
_dpaa2_eth_stop:                        ; @dpaa2_eth_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	wzr, [sp, #12]
	mov	x0, x20
	bl	_netif_tx_stop_all_queues
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_wait_for_egress_fq_empty
	mov	w21, #-10
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w0, [x19]
	mov	w1, #0
	bl	_dpni_disable
	ldp	w2, w0, [x19]
	add	x3, sp, #12
	mov	w1, #0
	bl	_dpni_is_enabled
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #100
	bl	_msleep
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	adds	w21, w21, #1
	b.lo	LBB0_1
	b	LBB0_5
LBB0_4:
	cbnz	w21, LBB0_6
LBB0_5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
LBB0_6:
	mov	x0, x19
	bl	_wait_for_ingress_fq_empty
	mov	x0, x19
	bl	_disable_ch_napi
	mov	x0, x19
	bl	_drain_pool
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Retry count exceeded disabling DPNI\n"

	.no_dead_strip	_dpaa2_eth_stop
.subsections_via_symbols
