	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns83820_cleanup_tx
_ns83820_cleanup_tx:                    ## @ns83820_cleanup_tx
	.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	_NR_TX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	leaq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movl	%edx, %eax
	cmpq	%rax, %r14
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %rax
	movq	(%rax,%r14,8), %rbx
	movq	$0, (%rax,%r14,8)
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	imull	%r14d, %r15d
	shlq	$2, %r15
	addq	(%rdi), %r15
	movl	12(%rdi), %r12d
	movq	_DESC_BUFPTR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r15,%rax,4), %rdi
	callq	_desc_addr_get
	movl	%eax, %r13d
	movq	_DESC_CMDSTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %edi
	callq	_le32_to_cpu
	movq	_CMDSTS_LEN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_pci_unmap_single
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_irq
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_NR_TX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_5
LBB0_1:
	xorl	%edx, %edx
LBB0_6:
	movq	(%rdi), %rdi
	movq	_DESC_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_TX_DESC,4,2                 ## @NR_TX_DESC
	.comm	_DESC_SIZE,4,2                  ## @DESC_SIZE
	.comm	_DESC_BUFPTR,4,2                ## @DESC_BUFPTR
	.comm	_DESC_CMDSTS,8,3                ## @DESC_CMDSTS
	.comm	_CMDSTS_LEN_MASK,4,2            ## @CMDSTS_LEN_MASK
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_ns83820_cleanup_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns83820_cleanup_tx
_ns83820_cleanup_tx:                    ; @ns83820_cleanup_tx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _NR_TX_DESC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NR_TX_DESC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x26, #0
	add	x20, x19, #8
Lloh3:
	adrp	x28, _DESC_CMDSTS@GOTPAGE
Lloh4:
	ldr	x28, [x28, _DESC_CMDSTS@GOTPAGEOFF]
Lloh5:
	adrp	x24, _CMDSTS_LEN_MASK@GOTPAGE
Lloh6:
	ldr	x24, [x24, _CMDSTS_LEN_MASK@GOTPAGEOFF]
Lloh7:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, uxtw
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	lsl	x10, x26, #3
	ldr	x21, [x9, x10]
	str	xzr, [x9, x10]
	cbz	x21, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _DESC_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DESC_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mul	w9, w9, w26
	add	x27, x8, w9, uxtw #2
	ldr	w22, [x19, #12]
Lloh12:
	adrp	x8, _DESC_BUFPTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DESC_BUFPTR@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	add	x0, x27, x8, lsl #2
	bl	_desc_addr_get
	mov	x23, x0
	ldr	x8, [x28]
	ldr	w0, [x27, x8, lsl #2]
	bl	_le32_to_cpu
	ldr	w8, [x24]
	and	w2, w8, w0
	ldr	w3, [x25]
	mov	x0, x22
	mov	x1, x23
	bl	_pci_unmap_single
	mov	x0, x21
	bl	_dev_kfree_skb_irq
	mov	x0, x20
	bl	_atomic_dec
Lloh15:
	adrp	x8, _NR_TX_DESC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NR_TX_DESC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	b	LBB0_2
LBB0_5:
	ldr	x0, [x19]
Lloh18:
	adrp	x9, _DESC_SIZE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DESC_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w2, w8, #2
	mov	w1, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_TX_DESC,4,2                 ; @NR_TX_DESC
	.comm	_DESC_SIZE,4,2                  ; @DESC_SIZE
	.comm	_DESC_BUFPTR,4,2                ; @DESC_BUFPTR
	.comm	_DESC_CMDSTS,8,3                ; @DESC_CMDSTS
	.comm	_CMDSTS_LEN_MASK,4,2            ; @CMDSTS_LEN_MASK
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_ns83820_cleanup_tx
.subsections_via_symbols
