	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_tx_clean
_ionic_tx_clean:                        ## @ionic_tx_clean
	.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, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rax), %r14
	callq	_q_to_tx_stats
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r12
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movl	4(%r12), %edi
	callq	_le64_to_cpu
	leaq	-96(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%rax, %rdi
	callq	_decode_txq_desc_cmd
	movq	-96(%rbp), %rax
	movq	_IONIC_TXQ_DESC_OPCODE_TSO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_IONIC_TXQ_DESC_FLAG_TSO_SOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -88(%rbp)
	je	LBB0_3
LBB0_2:
	movl	-48(%rbp), %r13d
	movl	(%r12), %edi
	callq	_le16_to_cpu
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	cmpq	$0, -56(%rbp)
	jle	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%rbx,8), %edi
	callq	_le64_to_cpu
	movq	%rax, %r13
	movl	(%r14,%rbx,8), %edi
	callq	_le16_to_cpu
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	incq	%rbx
	movl	%ebx, %eax
	cmpq	%rax, -56(%rbp)
	jg	LBB0_6
LBB0_7:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.8:
	movl	(%rbx), %r13d
	movq	%rbx, %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	___netif_subqueue_stopped
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_netif_wake_subqueue
	incl	(%r15)
LBB0_10:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movq	%r15, %rdi
	callq	_q_to_ndq
	movl	%eax, %edi
	movl	$1, %esi
	movl	%r13d, %edx
	callq	_netdev_tx_completed_queue
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-48(%rbp), %r13d
	movl	(%r12), %edi
	callq	_le16_to_cpu
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	cmpq	$0, -56(%rbp)
	jg	LBB0_5
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_IONIC_TXQ_DESC_OPCODE_TSO,8,3  ## @IONIC_TXQ_DESC_OPCODE_TSO
	.comm	_IONIC_TXQ_DESC_FLAG_TSO_SOT,8,3 ## @IONIC_TXQ_DESC_FLAG_TSO_SOT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_ionic_tx_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_tx_clean
_ionic_tx_clean:                        ; @ionic_tx_clean
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x3
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	ldr	x25, [x8]
	bl	_q_to_tx_stats
	mov	x21, x0
	ldr	x26, [x22]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x22, [x8]
	ldr	w0, [x26, #4]
	bl	_le64_to_cpu
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x4, sp
	bl	_decode_txq_desc_cmd
	ldr	x8, [sp, #24]
Lloh0:
	adrp	x9, _IONIC_TXQ_DESC_OPCODE_TSO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IONIC_TXQ_DESC_OPCODE_TSO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [sp, #16]
Lloh5:
	adrp	x9, _IONIC_TXQ_DESC_FLAG_TSO_SOT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IONIC_TXQ_DESC_FLAG_TSO_SOT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_3
LBB0_2:
	ldr	w23, [sp]
	ldr	w0, [x26]
	bl	_le16_to_cpu
	mov	x2, x0
	ldr	w3, [x24]
	mov	x0, x22
	mov	x1, x23
	bl	_dma_unmap_single
	b	LBB0_4
LBB0_3:
	ldr	w23, [sp]
	ldr	w0, [x26]
	bl	_le16_to_cpu
	mov	x2, x0
	ldr	w3, [x24]
	mov	x0, x22
	mov	x1, x23
	bl	_dma_unmap_page
LBB0_4:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.5:
	add	x25, x25, #4
	mov	w26, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_le64_to_cpu
	mov	x23, x0
	ldur	w0, [x25, #-4]
	bl	_le16_to_cpu
	mov	x2, x0
	ldr	w3, [x24]
	mov	x0, x22
	mov	x1, x23
	bl	_dma_unmap_page
	ldr	x8, [sp, #8]
	add	x25, x25, #8
	cmp	x8, w26, uxtw
	add	w26, w26, #1
	b.gt	LBB0_6
LBB0_7:
	cbz	x20, LBB0_11
; %bb.8:
	ldr	w22, [x20]
	mov	x0, x20
	bl	_skb_get_queue_mapping
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x23
	bl	___netif_subqueue_stopped
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_netif_wake_subqueue
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_10:
	mov	x0, x20
	bl	_dev_kfree_skb_any
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	x0, x19
	bl	_q_to_ndq
	mov	w1, #1
	mov	x2, x22
	bl	_netdev_tx_completed_queue
LBB0_11:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IONIC_TXQ_DESC_OPCODE_TSO,8,3  ; @IONIC_TXQ_DESC_OPCODE_TSO
	.comm	_IONIC_TXQ_DESC_FLAG_TSO_SOT,8,3 ; @IONIC_TXQ_DESC_FLAG_TSO_SOT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_ionic_tx_clean
.subsections_via_symbols
