	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_tx_frag_process
_mvneta_tx_frag_process:                ## @mvneta_tx_frag_process
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_skb_shinfo
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	leal	-1(%rcx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movq	$-4, -48(%rbp)                  ## 8-byte Folded Spill
	xorl	%r12d, %r12d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_shinfo
	leaq	(,%r12,4), %rbx
	addq	8(%rax), %rbx
	movq	%rbx, %rdi
	callq	_skb_frag_address
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_mvneta_txq_next_desc_get
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	%eax, 4(%r14)
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rcx
	movl	(%rcx), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dma_map_single
	movl	%eax, 8(%r14)
	movq	(%r15), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MVNETA_TXD_Z_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MVNETA_TXD_L_DESC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%r15d, %r15d
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	movl	$0, %ecx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmoveq	%rbx, %rcx
	cmovnel	%r15d, %eax
	movq	(%r13), %rdx
	movq	16(%r13), %rsi
	movq	%rcx, (%rsi,%rdx,8)
	movl	%eax, (%r14)
	movq	%r13, %rdi
	callq	_mvneta_txq_inc_put
	incq	%r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	addq	$12, -48(%rbp)                  ## 8-byte Folded Spill
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %r12
	jne	LBB0_3
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_5:
	movq	%r13, %rdi
	callq	_mvneta_txq_desc_put
	testl	%r12d, %r12d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%r15), %rcx
	movl	(%rcx), %edi
	movl	-4(%rax,%rbx), %edx
	movl	(%rax,%rbx), %esi
	movl	(%r14), %ecx
	callq	_dma_unmap_single
	movq	%r13, %rdi
	callq	_mvneta_txq_desc_put
	decq	%r12
	addq	$-12, %rbx
	cmpq	$1, %r12
	jg	LBB0_6
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_MVNETA_TXD_L_DESC,4,2          ## @MVNETA_TXD_L_DESC
	.comm	_MVNETA_TXD_Z_PAD,4,2           ## @MVNETA_TXD_Z_PAD
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mvneta_tx_frag_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_tx_frag_process
_mvneta_tx_frag_process:                ; @mvneta_tx_frag_process
	.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
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x25, #0
	mov	x28, #0
	sub	w9, w8, #1
	str	x9, [sp]                        ; 8-byte Folded Spill
	mov	w26, #1
Lloh0:
	adrp	x23, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_TO_DEVICE@GOTPAGEOFF]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	mov	x27, x23
	add	x23, x8, x28, lsl #2
	mov	x0, x23
	bl	_skb_frag_address
	mov	x20, x0
	mov	x0, x24
	bl	_mvneta_txq_next_desc_get
	mov	x22, x0
	mov	x0, x23
	mov	x23, x27
	bl	_skb_frag_size
	mov	x2, x0
	str	w0, [x22, #4]
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w3, [x27]
	mov	x1, x20
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x22, #8]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_dma_mapping_error
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh2:
	adrp	x8, _MVNETA_TXD_L_DESC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MVNETA_TXD_L_DESC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MVNETA_TXD_Z_PAD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MVNETA_TXD_Z_PAD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cmp	x28, x9
	csel	x9, x21, xzr, eq
	csel	w8, w8, wzr, eq
	ldr	x10, [x24, #16]
	ldr	x11, [x24]
	str	x9, [x10, x11, lsl #3]
	str	w8, [x22]
	mov	x0, x24
	bl	_mvneta_txq_inc_put
	add	x28, x28, #1
	add	x26, x26, #1
	add	x25, x25, #12
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x28, x8
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	mov	x0, x24
	bl	_mvneta_txq_desc_put
	cbz	w28, LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x19]
	ldr	w0, [x9]
	add	x8, x8, x25
	ldp	w2, w1, [x8, #-8]
	ldr	w3, [x23]
	bl	_dma_unmap_single
	mov	x0, x24
	bl	_mvneta_txq_desc_put
	sub	x26, x26, #1
	sub	x25, x25, #12
	cmp	x26, #1
	b.gt	LBB0_6
LBB0_7:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_MVNETA_TXD_L_DESC,4,2          ; @MVNETA_TXD_L_DESC
	.comm	_MVNETA_TXD_Z_PAD,4,2           ; @MVNETA_TXD_Z_PAD
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mvneta_tx_frag_process
.subsections_via_symbols
