	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ave_stop
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ave_stop:                              ## @ave_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_ave_irq_disable_all
	movl	72(%r15), %edi
	callq	_disable_irq
	movl	72(%r15), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	%r14, %rdi
	callq	_netif_tx_disable
	movl	(%r14), %edi
	callq	_phy_stop
	leaq	68(%r15), %rdi
	callq	_napi_disable
	leaq	64(%r15), %rdi
	callq	_napi_disable
	movq	_AVE_DESC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ave_desc_switch
	movl	32(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	40(%r15), %rsi
	xorl	%ebx, %ebx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rsi,%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_ave_dma_unmap
	movq	40(%r15), %rax
	movq	(%rax,%rbx), %rdi
	callq	_dev_kfree_skb_any
	movq	40(%r15), %rsi
	movq	$0, (%rsi,%rbx)
	movl	32(%r15), %eax
	jmp	LBB0_4
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r15)
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	movq	8(%r15), %rsi
	xorl	%ebx, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rsi,%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	%rbx, %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_ave_dma_unmap
	movq	8(%r15), %rax
	movq	(%rax,%rbx), %rdi
	callq	_dev_kfree_skb_any
	movq	8(%r15), %rsi
	movq	$0, (%rsi,%rbx)
	movl	(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	movq	40(%r15), %rdi
	callq	_kfree
	movq	8(%r15), %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVE_DESC_STOP,4,2              ## @AVE_DESC_STOP
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_ave_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ave_stop
_ave_stop:                              ; @ave_stop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_ave_irq_disable_all
	ldr	w0, [x19, #72]
	bl	_disable_irq
	ldr	w0, [x19, #72]
	mov	x1, x20
	bl	_free_irq
	mov	x0, x20
	bl	_netif_tx_disable
	ldr	w0, [x20]
	bl	_phy_stop
	add	x0, x19, #68
	bl	_napi_disable
	add	x0, x19, #64
	bl	_napi_disable
Lloh0:
	adrp	x8, _AVE_DESC_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVE_DESC_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ave_desc_switch
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	ldr	x9, [x19, #40]
Lloh3:
	adrp	x23, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x21, x21, #8
	cmp	x22, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x9, x21
	ldr	x10, [x1]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	bl	_ave_dma_unmap
	ldr	x8, [x19, #40]
	ldr	x0, [x8, x21]
	bl	_dev_kfree_skb_any
	ldr	x9, [x19, #40]
	str	xzr, [x9, x21]
	ldr	w8, [x19, #32]
	b	LBB0_2
LBB0_5:
	stp	xzr, xzr, [x19, #48]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x21, #0
	mov	x22, #0
	ldr	x9, [x19, #8]
Lloh5:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	add	x21, x21, #8
	cmp	x22, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x9, x21
	ldr	x10, [x1]
	cbz	x10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	bl	_ave_dma_unmap
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21]
	bl	_dev_kfree_skb_any
	ldr	x9, [x19, #8]
	str	xzr, [x9, x21]
	ldr	w8, [x19]
	b	LBB0_7
LBB0_10:
	stp	xzr, xzr, [x19, #16]
	ldr	x0, [x19, #40]
	bl	_kfree
	ldr	x0, [x19, #8]
	bl	_kfree
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AVE_DESC_STOP,4,2              ; @AVE_DESC_STOP
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_ave_stop
.subsections_via_symbols
