	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_txq_bufs_free
_mvneta_txq_bufs_free:                  ## @mvneta_txq_bufs_free
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movq	%rsi, %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movslq	(%r12), %r15
	movq	(%rax,%r15,8), %r13
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	incl	-48(%rbp)                       ## 4-byte Folded Spill
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %r14
	movq	%r12, %rdi
	callq	_mvneta_txq_inc_get
	movl	4(%r14,%r15,8), %esi
	movq	%r12, %rdi
	callq	_IS_TSO_HEADER
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	jne	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	(%r14,%r15,8), %edx
	movl	4(%r14,%r15,8), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	testq	%r13, %r13
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_9
LBB0_1:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_tx_completed_queue      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_mvneta_txq_bufs_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_txq_bufs_free
_mvneta_txq_bufs_free:                  ; @mvneta_txq_bufs_free
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	w20, #0
	mov	w21, #0
Lloh0:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w22, w22, #1
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x27, [x23]
	ldr	x8, [x23, #8]
	ldr	x25, [x8, x27, lsl #3]
	cbz	x25, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	add	w20, w20, w8
	add	w21, w21, #1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x28, [x23, #16]
	mov	x0, x23
	bl	_mvneta_txq_inc_get
	add	x19, x28, x27, lsl #3
	ldr	w1, [x19, #4]!
	mov	x0, x23
	bl	_IS_TSO_HEADER
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x25, LBB0_8
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8]
	ldr	w1, [x19]
	lsl	x8, x27, #3
	ldr	w2, [x28, x8]
	ldr	w3, [x26]
	bl	_dma_unmap_single
	cbz	x25, LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_dev_kfree_skb_any
	b	LBB0_2
LBB0_9:
	mov	w21, #0
	mov	w20, #0
LBB0_10:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_netdev_tx_completed_queue
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_mvneta_txq_bufs_free
.subsections_via_symbols
