	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxart_tx_finished
_moxart_tx_finished:                    ## @moxart_tx_finished
	.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
	movl	(%rax), %r13d
	movl	4(%rax), %ebx
	cmpl	%r13d, %ebx
	je	LBB0_3
## %bb.1:
	leaq	8(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movl	%ebx, %r12d
	movl	(%rcx,%r12,4), %esi
	movl	(%rax,%r12,4), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_unmap_single
	incl	4(%r14)
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	movl	(%rdi), %eax
	addl	%eax, (%r14)
	callq	_dev_consume_skb_irq
	movq	8(%r15), %rax
	movq	$0, (%rax,%r12,8)
	movl	%ebx, %edi
	callq	_TX_NEXT
	movl	%eax, %ebx
	cmpl	%r13d, %eax
	jne	LBB0_2
LBB0_3:
	movl	%r13d, 4(%r15)
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_moxart_tx_queue_space
	movq	_TX_WAKE_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_TX_WAKE_THRESHOLD,8,3          ## @TX_WAKE_THRESHOLD
	.no_dead_strip	_moxart_tx_finished
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moxart_tx_finished
_moxart_tx_finished:                    ; @moxart_tx_finished
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	w23, w21, [x0]
	cmp	w21, w23
	b.eq	LBB0_3
; %bb.1:
	add	x22, x19, #8
Lloh0:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w25, w21
	lsl	x8, x25, #2
	ldp	x10, x9, [x20, #16]
	ldr	w1, [x9, x8]
	ldr	w2, [x10, x8]
	ldr	w3, [x24]
	mov	x0, x22
	bl	_dma_unmap_single
	ldr	x8, [x20, #8]
	lsl	x25, x25, #3
	ldr	x0, [x8, x25]
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x0]
	add.2s	v0, v0, v1
	str	d0, [x19]
	bl	_dev_consume_skb_irq
	ldr	x8, [x20, #8]
	str	xzr, [x8, x25]
	mov	x0, x21
	bl	_TX_NEXT
	mov	x21, x0
	cmp	w0, w23
	b.ne	LBB0_2
LBB0_3:
	str	w23, [x20, #4]
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_moxart_tx_queue_space
Lloh2:
	adrp	x8, _TX_WAKE_THRESHOLD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TX_WAKE_THRESHOLD@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_netif_wake_queue
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_TX_WAKE_THRESHOLD,8,3          ; @TX_WAKE_THRESHOLD
	.no_dead_strip	_moxart_tx_finished
.subsections_via_symbols
