	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qtnf_topaz_data_tx_reclaim
_qtnf_topaz_data_tx_reclaim:            ## @qtnf_topaz_data_tx_reclaim
	.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	%rdi, %r15
	addq	$32, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	8(%r15), %edi
	callq	_readl
	movl	%eax, %r12d
	movl	16(%r15), %ebx
	movl	20(%r15), %edi
	movl	24(%r15), %edx
	movl	%eax, %esi
	callq	_CIRC_CNT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_TOPAZ_RC_TX_DONE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TOPAZ_IPC_IRQ_WORD
	movl	%eax, %r13d
	movl	60(%r15), %edi
	callq	_TOPAZ_LH_IPC4_INT
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_writel
LBB0_2:
	movl	24(%r15), %edx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_CIRC_CNT
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	incl	%r14d
	incl	%ebx
	movl	24(%r15), %edx
	cmpl	%edx, %ebx
	movl	$0, %eax
	cmovgel	%eax, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_CIRC_CNT
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r15), %rax
	movslq	%ebx, %rbx
	movq	(%rax,%rbx,8), %r13
	movq	%r13, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_QTN_HOST_ADDR
	movl	56(%r15), %edi
	movl	8(%r13), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rsi
	callq	_qtnf_update_tx_stats
	movq	48(%r15), %rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rdi
	callq	_qtnf_wake_all_queues
	movq	$0, 48(%r15)
	jmp	LBB0_8
LBB0_10:
	addl	%r14d, 28(%r15)
	incl	36(%r15)
	movl	%ebx, 16(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TOPAZ_RC_TX_DONE_IRQ,4,2       ## @TOPAZ_RC_TX_DONE_IRQ
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_qtnf_topaz_data_tx_reclaim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qtnf_topaz_data_tx_reclaim
_qtnf_topaz_data_tx_reclaim:            ; @qtnf_topaz_data_tx_reclaim
	.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	x20, x0
	add	x19, x0, #32
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #8]
	bl	_readl
	mov	x21, x0
	ldp	w22, w0, [x20, #16]
	ldr	w2, [x20, #24]
	mov	x1, x21
	bl	_CIRC_CNT
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _TOPAZ_RC_TX_DONE_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TOPAZ_RC_TX_DONE_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_TOPAZ_IPC_IRQ_WORD
	mov	x23, x0
	ldr	w0, [x20, #60]
	bl	_TOPAZ_LH_IPC4_INT
	mov	x1, x0
	mov	x0, x23
	bl	_writel
LBB0_2:
	ldr	w2, [x20, #24]
	mov	x0, x21
	mov	x1, x22
	bl	_CIRC_CNT
	mov	w23, #0
	cbz	x0, LBB0_10
; %bb.3:
Lloh3:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_dev_kfree_skb_any
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #40]
	str	xzr, [x8, x25, lsl #3]
	add	w23, w23, #1
	add	w8, w25, #1
	ldr	w2, [x20, #24]
	cmp	w8, w2
	csinc	w22, wzr, w25, ge
	mov	x0, x21
	mov	x1, x22
	bl	_CIRC_CNT
	cbz	x0, LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #40]
	sxtw	x25, w22
	ldr	x22, [x8, w22, sxtw #3]
	mov	x0, x22
	bl	_likely
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x25, lsl #2]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	w0, #0
	bl	_QTN_HOST_ADDR
	mov	x1, x0
	ldr	w0, [x20, #56]
	ldr	w2, [x22, #8]
	ldr	w3, [x24]
	bl	_pci_unmap_single
	ldr	x0, [x22]
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x22
	bl	_qtnf_update_tx_stats
	ldr	x0, [x20, #48]
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x22]
	bl	_qtnf_wake_all_queues
	str	xzr, [x20, #48]
	b	LBB0_4
LBB0_10:
	ldr	w8, [x20, #28]
	add	w8, w8, w23
	str	w8, [x20, #28]
	ldr	w8, [x20, #36]
	add	w8, w8, #1
	str	w8, [x20, #36]
	str	w22, [x20, #16]
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TOPAZ_RC_TX_DONE_IRQ,4,2       ; @TOPAZ_RC_TX_DONE_IRQ
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_qtnf_topaz_data_tx_reclaim
.subsections_via_symbols
