	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_clean_txd
_cas_clean_txd:                         ## @cas_clean_txd
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rcx
	movslq	%esi, %rdi
	movq	(%rcx,%rdi,8), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	(%rax,%rdi,8), %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_TX_DESC_RINGN_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movq	%rbx, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r14d
	xorl	%ebx, %ebx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movslq	%ebx, %rax
	movq	(%rcx,%rax,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %r12
	movq	$0, (%rcx,%rax,8)
	movq	%rdx, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	js	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	%eax, %ebx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	callq	_skb_shinfo
	cmpl	(%rax), %r13d
	jge	LBB0_11
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	incl	%r13d
	movl	%ebx, %eax
	andl	%r14d, %eax
	movl	%r13d, %ebx
	movslq	%eax, %r13
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movl	4(%r14,%r13,8), %edi
	callq	_le64_to_cpu
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_TX_DESC_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14,%r13,8), %edi
	movl	%ebx, %r13d
	movq	%r12, %rbx
	callq	_le64_to_cpu
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_CAS_VAL
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %edi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_pci_unmap_page
	movq	%r12, %rdi
	callq	_skb_shinfo
	cmpl	(%rax), %r13d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leal	1(%rdi), %eax
	movl	%eax, %ecx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	andl	%r14d, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rdx,%rsi,8), %rdx
	movslq	%ecx, %rcx
	cmpq	$0, (%rdx,%rcx,8)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rdi, %rcx
	addl	$2, %ecx
	movl	%ecx, %eax
	jmp	LBB0_9
LBB0_13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	shll	$3, %edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_DESC_BUFLEN,4,2             ## @TX_DESC_BUFLEN
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_cas_clean_txd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_clean_txd
_cas_clean_txd:                         ; @cas_clean_txd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	sxtw	x8, w1
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	sbfiz	x8, x1, #3, #32
	ldp	x10, x9, [x0, #16]
	ldr	x25, [x9, x8]
	ldr	x20, [x10, x8]
	mov	x0, x1
	bl	_TX_DESC_RINGN_SIZE
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	subs	w27, w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w28, #0
Lloh0:
	adrp	x26, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_dev_kfree_skb_any
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w28, w28, #1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w28, w8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x21, [x20, w28, sxtw #3]
	cbz	x21, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w28
	str	xzr, [x20, x8, lsl #3]
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #-1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w24, w8
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w24, w24, #1
	and	w8, w28, w27
	add	x20, x25, w8, sxtw #3
	ldr	w0, [x20, #4]
	bl	_le64_to_cpu
	mov	x22, x0
Lloh2:
	adrp	x8, _TX_DESC_BUFLEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TX_DESC_BUFLEN@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	ldr	w0, [x20]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x23
	bl	_CAS_VAL
	mov	x2, x0
	ldr	w0, [x19, #8]
	ldr	w3, [x26]
	mov	x1, x22
	bl	_pci_unmap_page
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w24, w8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w8, w28, #1
	ldr	x9, [x19]
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x9, [x9, x10, lsl #3]
	and	w8, w8, w27
	ldr	x8, [x9, w8, sxtw #3]
	add	w9, w28, #2
	cmp	x8, #0
	csinc	w28, w9, w28, ne
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x0, [x8, x9, lsl #3]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	lsl	w2, w8, #3
	mov	w1, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_memset
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_DESC_BUFLEN,4,2             ; @TX_DESC_BUFLEN
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_cas_clean_txd
.subsections_via_symbols
