	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_desc_unmap_put
_tx_desc_unmap_put:                     ## @tx_desc_unmap_put
	.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, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %r12d
	xorl	%eax, %eax
	callq	_smp_processor_id
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_mvpp2_cpu_to_thread
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_per_cpu_ptr
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mvpp2_txdesc_dma_addr_get
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mvpp2_txdesc_size_get
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_IS_TSO_HEADER
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_dma_unmap_single
LBB0_2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mvpp2_txq_desc_put             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_tx_desc_unmap_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_desc_unmap_put
_tx_desc_unmap_put:                     ; @tx_desc_unmap_put
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w21, [x0, #8]
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x21
	bl	_mvpp2_cpu_to_thread
	mov	x1, x0
	ldr	w0, [x19]
	bl	_per_cpu_ptr
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_mvpp2_txdesc_dma_addr_get
	mov	x21, x0
	mov	x0, x20
	mov	x1, x22
	bl	_mvpp2_txdesc_size_get
	mov	x22, x0
	mov	x0, x23
	mov	x1, x21
	bl	_IS_TSO_HEADER
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x2, x22
	bl	_dma_unmap_single
LBB0_2:
	mov	x0, x19
	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	_mvpp2_txq_desc_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_tx_desc_unmap_put
.subsections_via_symbols
