	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_tso_put_data
_mvneta_tso_put_data:                   ## @mvneta_tso_put_data
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movq	%rcx, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_mvneta_txq_next_desc_get
	movq	%rax, %r13
	movl	%ebx, (%rax)
	movl	(%r15), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_dma_map_single
	movl	%eax, 16(%r13)
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_mvneta_txq_desc_put
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	$0, 8(%r13)
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	$0, (%rcx,%rax,8)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.3:
	movl	16(%rbp), %ecx
	movq	_MVNETA_TXD_L_DESC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%r13)
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movq	8(%r12), %rcx
	movq	%rsi, (%rcx,%rax,8)
LBB0_5:
	movq	%r12, %rdi
	callq	_mvneta_txq_inc_put
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %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	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MVNETA_TXD_L_DESC,8,3          ## @MVNETA_TXD_L_DESC
	.no_dead_strip	_mvneta_tso_put_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_tso_put_data
_mvneta_tso_put_data:                   ; @mvneta_tso_put_data
	.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	x21, x6
	mov	x22, x5
	mov	x24, x4
	mov	x25, x3
	mov	x20, x2
	mov	x19, x1
	mov	x26, x0
	mov	x0, x1
	bl	_mvneta_txq_next_desc_get
	mov	x23, x0
	str	w24, [x0]
	ldr	w0, [x26]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x25
	mov	x2, x24
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x23, #16]
	ldr	w0, [x26]
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mvneta_txq_desc_put
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	str	xzr, [x23, #8]
	ldp	x8, x9, [x19]
	str	xzr, [x9, x8, lsl #3]
	cbz	w22, LBB0_5
; %bb.3:
Lloh6:
	adrp	x9, _MVNETA_TXD_L_DESC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MVNETA_TXD_L_DESC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x9, [x23, #8]
	cbz	w21, LBB0_5
; %bb.4:
	ldr	x9, [x19, #8]
	str	x20, [x9, x8, lsl #3]
LBB0_5:
	mov	x0, x19
	bl	_mvneta_txq_inc_put
	mov	w0, #0
LBB0_6:
	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
	.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	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MVNETA_TXD_L_DESC,8,3          ; @MVNETA_TXD_L_DESC
	.no_dead_strip	_mvneta_tso_put_data
.subsections_via_symbols
