	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_txq_done
_mvpp2_txq_done:                        ## @mvpp2_txq_done
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	(%rdi), %edi
	movl	(%rsi), %esi
	callq	_netdev_get_tx_queue
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r14
	movl	4(%r13), %ebx
	xorl	%eax, %eax
	callq	_smp_processor_id
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_mvpp2_cpu_to_thread
	cmpq	%rax, %r14
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_2:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mvpp2_txq_sent_desc_proc
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_mvpp2_txq_bufs_free
	movslq	%ebx, %rax
	subq	%rax, 8(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%r15), %rax
	cmpq	16(%r15), %rax
	jle	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_tx_wake_queue            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong cpu on the end of Tx processing\n"

	.no_dead_strip	_mvpp2_txq_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_txq_done
_mvpp2_txq_done:                        ; @mvpp2_txq_done
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0]
	ldr	w1, [x1]
	bl	_netdev_get_tx_queue
	mov	x20, x0
	ldr	x24, [x19]
	ldr	w23, [x22, #4]
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x23
	bl	_mvpp2_cpu_to_thread
	cmp	x24, x0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	bl	_mvpp2_txq_sent_desc_proc
	cbz	w0, LBB0_5
; %bb.3:
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	bl	_mvpp2_txq_bufs_free
	ldr	x8, [x19, #8]
	sub	x8, x8, w23, sxtw
	str	x8, [x19, #8]
	mov	x0, x20
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_5
; %bb.4:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_6
LBB0_5:
	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
LBB0_6:
	mov	x0, x20
	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
	b	_netif_tx_wake_queue
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong cpu on the end of Tx processing\n"

	.no_dead_strip	_mvpp2_txq_done
.subsections_via_symbols
