	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_ring_tx_clean               ## -- Begin function aq_ring_tx_clean
	.p2align	4, 0x90
_aq_ring_tx_clean:                      ## @aq_ring_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	24(%rdi), %edi
	callq	_aq_nic_get_dev
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_AQ_CFG_TX_CLEAN_BUDGET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.1:
	movq	(%r15), %rax
	movl	$1, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, 4(%r13,%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$65535, (%rax)                  ## imm = 0xFFFF
	movq	(%r15), %rsi
	movq	%r15, %rdi
	callq	_aq_ring_next_dx
	movq	%rax, (%r15)
	decl	%ebx
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	8(%r15), %rax
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %r13
	leaq	(%rax,%rax,8), %rcx
	leaq	(%rcx,%rcx,2), %r14
	addq	%rax, %r14
	leaq	(%r14,%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	24(%r13,%r14), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r13,%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 12(%r13,%r14)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	movq	8(%r15), %rdx
	callq	_aq_ring_dx_in_range
	testl	%eax, %eax
	je	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13,%r14), %esi
	movl	16(%r13,%r14), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_unmap_single
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13,%r14), %esi
	movl	16(%r13,%r14), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_unmap_page
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r13,%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13,%r14), %edi
	callq	_dev_kfree_skb_any
	jmp	LBB0_12
LBB0_13:
	xorl	%r12d, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AQ_CFG_TX_CLEAN_BUDGET,4,2     ## @AQ_CFG_TX_CLEAN_BUDGET
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_ring_tx_clean               ; -- Begin function aq_ring_tx_clean
	.p2align	2
_aq_ring_tx_clean:                      ; @aq_ring_tx_clean
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_aq_nic_get_dev
Lloh0:
	adrp	x8, _AQ_CFG_TX_CLEAN_BUDGET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AQ_CFG_TX_CLEAN_BUDGET@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cbz	w22, LBB0_13
; %bb.1:
	mov	x20, x0
	ldr	x21, [x19]
	mov	w23, #28
	movi	d8, #0x0000000000ffff
Lloh3:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	mov	w25, #65535
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	d8, [x26]
	ldr	x1, [x19]
	mov	x0, x19
	bl	_aq_ring_next_dx
	mov	x21, x0
	str	x0, [x19]
	subs	w22, w22, #1
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	cmp	x21, x8
	b.eq	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x27, [x19, #16]
	madd	x26, x21, x23, x27
	ldr	w0, [x26, #24]
	bl	_likely
	cbz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x21, x23, x27
	ldr	w0, [x8, #20]
	bl	_unlikely
	madd	x8, x21, x23, x27
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8, #12]
	cbnz	w8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26]
	cmp	w1, w25
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x0, x2, [x19]
	bl	_aq_ring_dx_in_range
	cbz	w0, LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x21, x23, x27
	ldr	w1, [x8, #4]
	ldr	w2, [x8, #16]
	ldr	w3, [x24]
	mov	x0, x20
	bl	_dma_unmap_single
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x8, #4]
	ldr	w2, [x8, #16]
	ldr	w3, [x24]
	mov	x0, x20
	bl	_dma_unmap_page
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x21, x23, x27
	ldr	w0, [x8, #12]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x21, x23, x27
	ldr	w0, [x8, #8]
	bl	_dev_kfree_skb_any
	b	LBB0_2
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w0, #1
LBB0_15:
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AQ_CFG_TX_CLEAN_BUDGET,4,2     ; @AQ_CFG_TX_CLEAN_BUDGET
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
.subsections_via_symbols
