	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_tx_frag_process
_mvpp2_tx_frag_process:                 ## @mvpp2_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	%rcx, %r12
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %ebx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_smp_processor_id
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_mvpp2_cpu_to_thread
	movl	12(%r12), %edi
	movl	%eax, %esi
	callq	_per_cpu_ptr
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.1:
	movq	$-4, %rbx
	xorl	%r13d, %r13d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rax
	leaq	(%rax,%rbx), %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_skb_frag_address
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_mvpp2_txq_next_desc_get
	movq	%rax, %r15
	movl	8(%r12), %edx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mvpp2_txdesc_txq_set
	movq	%r14, %rdi
	callq	_skb_frag_size
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_mvpp2_txdesc_size_set
	movq	(%r12), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dma_map_single
	movl	%eax, %ebx
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_mvpp2_txdesc_dma_addr_set
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	decl	%eax
	xorl	%ecx, %ecx
	cmpq	%rax, %r13
	movq	_MVPP2_TXD_L_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmovnel	%ecx, %edx
	movl	$0, %ebx
	cmoveq	%r14, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mvpp2_txdesc_cmd_set
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_mvpp2_txq_inc_put
	incq	%r13
	movq	%r14, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	$4, %rcx
	cmpq	%rax, %r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rcx, %rbx
	jl	LBB0_2
	jmp	LBB0_8
LBB0_4:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mvpp2_txq_desc_put
	testl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.5:
	incq	%r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdx
	addq	%rbx, %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_tx_desc_unmap_put
	decq	%r13
	addq	$-4, %rbx
	cmpq	$1, %r13
	jg	LBB0_6
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	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	_MVPP2_TXD_L_DESC,4,2           ## @MVPP2_TXD_L_DESC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mvpp2_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 mvpp2_tx_frag_process
_mvpp2_tx_frag_process:                 ; @mvpp2_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	x19, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x1
	mov	x20, x0
	ldr	w23, [x0, #8]
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x23
	bl	_mvpp2_cpu_to_thread
	mov	x1, x0
	ldr	w0, [x19, #12]
	bl	_per_cpu_ptr
	mov	x23, x0
	mov	x0, x22
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
	mov	x28, #-4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x8, x8, x28
	add	x25, x8, #4
	mov	x0, x25
	bl	_skb_frag_address
	mov	x26, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_mvpp2_txq_next_desc_get
	mov	x24, x0
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	x1, x24
	bl	_mvpp2_txdesc_txq_set
	mov	x0, x25
	bl	_skb_frag_size
	mov	x2, x0
	mov	x0, x20
	mov	x1, x24
	bl	_mvpp2_txdesc_size_set
	ldr	x8, [x20]
	ldr	w27, [x8]
	mov	x0, x25
	bl	_skb_frag_size
	mov	x2, x0
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x26
	bl	_dma_map_single
	mov	x25, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x25
	bl	_dma_mapping_error
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_mvpp2_txdesc_dma_addr_set
	mov	x0, x22
	bl	_skb_shinfo
	ldr	w8, [x0]
	sub	w8, w8, #1
Lloh3:
	adrp	x9, _MVPP2_TXD_L_DESC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MVPP2_TXD_L_DESC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x21, x8
	csel	x25, x22, xzr, eq
	csel	w2, w9, wzr, eq
	mov	x0, x20
	mov	x1, x24
	bl	_mvpp2_txdesc_cmd_set
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	mov	x3, x24
	bl	_mvpp2_txq_inc_put
	add	x21, x21, #1
	mov	x0, x22
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x28, x28, #4
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_mvpp2_txq_desc_put
	cbz	w21, LBB0_8
; %bb.6:
	add	x21, x21, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x2, x8, x28
	mov	x0, x20
	mov	x1, x19
	bl	_tx_desc_unmap_put
	sub	x21, x21, #1
	sub	x28, x28, #4
	cmp	x21, #1
	b.gt	LBB0_7
LBB0_8:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_MVPP2_TXD_L_DESC,4,2           ; @MVPP2_TXD_L_DESC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mvpp2_tx_frag_process
.subsections_via_symbols
