	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_tx_ringN
_cas_tx_ringN:                          ## @cas_tx_ringN
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %r13
	movq	48(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r15
	leaq	(,%r15,4), %rax
	movq	8(%rdi), %rdi
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	addq	%rax, %rdi
	callq	_spin_lock
	movq	64(%r13), %rax
	movq	(%rax,%r15,8), %rbx
	movq	(%r13), %rax
	movq	56(%r13), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r15,4), %r14d
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_TX_BUFF_COUNT
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r12d, %r14d
	je	LBB0_13
## %bb.1:
	movl	%eax, %ecx
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rdi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	addq	%r12, %rdi
	callq	_spin_lock
	movq	24(%r13), %rax
	incl	4(%rax,%r15,8)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	addl	%ecx, (%rax,%r15,8)
	movq	16(%r13), %rdi
	addq	%r12, %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	callq	_dev_consume_skb_irq
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movslq	%r14d, %r12
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	callq	_skb_shinfo
	movq	32(%r13), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rbx
	shlq	$4, %rbx
	movl	(%rcx,%rbx), %ecx
	addl	(%rax), %ecx
	notl	%ecx
	addl	%ecx, -52(%rbp)                 ## 4-byte Folded Spill
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	48(%r13), %rcx
	movl	%r12d, (%rsp)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	leaq	L_.str(%rip), %r8
	movl	%r15d, %r9d
	callq	_netif_printk
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax,%r12,8)
	movq	32(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movl	$0, (%rax,%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	js	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	incl	%r12d
	cmpl	(%rax), %r12d
	jge	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r14d, %rbx
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	4(%r14,%rbx,8), %edi
	callq	_le64_to_cpu
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%r13, %r15
	movq	_TX_DESC_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r14,%rbx,8), %edi
	callq	_le64_to_cpu
	movl	%r13d, %edi
	movq	%r15, %r13
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movl	%eax, %esi
	callq	_CAS_VAL
	movl	40(%r13), %edi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_pci_unmap_page
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_TX_DESC_NEXT
	movl	%eax, %r14d
	movq	32(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	addq	%rcx, %rax
	addq	$8, %rax
	movq	$0, (%rax)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_TX_DESC_NEXT
	movl	%eax, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%ecx, %ebx
	callq	_TX_DESC_NEXT
	movl	%ebx, %ecx
	movl	%eax, %r14d
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jne	LBB0_2
	jmp	LBB0_13
LBB0_5:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
LBB0_13:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%r13), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax,%r15,4)
	movq	%rbx, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_TX_BUFFS_AVAIL
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_CAS_TABORT
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	incl	%ecx
	imull	%eax, %ecx
	cmpl	%ecx, %r14d
	jle	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_netif_wake_queue
LBB0_16:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	addq	8(%r13), %rdi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tx_done,4,2                    ## @tx_done
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx[%d] done, slot %d\n"

	.comm	_TX_DESC_BUFLEN,4,2             ## @TX_DESC_BUFLEN
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.no_dead_strip	_cas_tx_ringN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_tx_ringN
_cas_tx_ringN:                          ; @cas_tx_ringN
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #48]
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [x0, #8]
	sxtw	x20, w21
	sbfiz	x22, x21, #2, #32
	add	x0, x8, x22
	bl	_spin_lock
	sbfiz	x8, x21, #3, #32
	ldp	x10, x9, [x19, #56]
	ldr	x25, [x9, x8]
	ldr	x26, [x10, x8]
	ldr	x8, [x19]
	ldr	w24, [x8, x22]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_TX_BUFF_COUNT
	str	w23, [sp, #28]                  ; 4-byte Folded Spill
	cmp	w24, w23
	b.eq	LBB0_13
; %bb.1:
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	lsl	x9, x20, #2
	lsl	x8, x20, #3
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	mov	x22, x26
	str	x26, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	add	x0, x8, x22
	bl	_spin_lock
	ldp	x9, x8, [x19, #16]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldr	d0, [x8, x10]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x26]
	add.2s	v0, v0, v1
	str	d0, [x8, x10]
	add	x0, x9, x22
	bl	_spin_unlock
	mov	x0, x26
	bl	_dev_consume_skb_irq
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w24, w8
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x26, [x22, w24, sxtw #3]
	cbz	x26, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x22, w24
	mov	x0, x26
	bl	_skb_shinfo
	ldr	w8, [x0]
	ldr	x9, [x19, #32]
	ldr	x9, [x9, x20, lsl #3]
	lsl	x27, x22, #4
	ldr	w9, [x9, x27]
	add	w8, w9, w8
	mvn	w8, w8
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	adds	w9, w9, w8
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	b.mi	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x8, _tx_done@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	x3, [x19, #48]
	mov	x0, x19
Lloh6:
	adrp	x4, l_.str@PAGE
Lloh7:
	add	x4, x4, l_.str@PAGEOFF
	mov	x5, x21
	mov	x6, x24
	bl	_netif_printk
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	xzr, [x8, x22, lsl #3]
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x20, lsl #3]
	str	wzr, [x8, x27]
	mov	x0, x26
	bl	_skb_shinfo
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #-1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x26
	bl	_skb_shinfo
	ldr	w8, [x0]
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x23, x25, w24, sxtw #3
	ldr	w0, [x23, #4]
	bl	_le64_to_cpu
	mov	x27, x0
Lloh8:
	adrp	x8, _TX_DESC_BUFLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TX_DESC_BUFLEN@GOTPAGEOFF]
Lloh10:
	ldr	w28, [x8]
	ldr	w0, [x23]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x28
	bl	_CAS_VAL
	mov	x2, x0
	ldr	w0, [x19, #40]
Lloh11:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x1, x27
	bl	_pci_unmap_page
	mov	x0, x21
	mov	x1, x24
	bl	_TX_DESC_NEXT
	mov	x24, x0
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x20, lsl #3]
	add	x8, x8, w0, sxtw #4
	ldr	x9, [x8, #8]!
	cbz	x9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	str	xzr, [x8]
	mov	x0, x21
	mov	x1, x24
	bl	_TX_DESC_NEXT
	mov	x24, x0
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_TX_DESC_NEXT
	mov	x24, x0
	b	LBB0_3
LBB0_12:
	mov	x8, x24
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
LBB0_13:
	ldr	x22, [sp]                       ; 8-byte Folded Reload
	ldr	x8, [x19]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	str	w9, [x8, x20, lsl #2]
	mov	x0, x22
	bl	_netif_queue_stopped
	cbz	x0, LBB0_16
; %bb.14:
	mov	x0, x19
	mov	x1, x21
	bl	_TX_BUFFS_AVAIL
	mov	x21, x0
	mov	x0, x19
	bl	_CAS_TABORT
Lloh14:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	madd	w8, w0, w8, w0
	cmp	w21, w8
	b.le	LBB0_16
; %bb.15:
	mov	x0, x22
	bl	_netif_wake_queue
LBB0_16:
	ldr	x8, [x19, #8]
	add	x0, x8, x20, lsl #2
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_spin_unlock
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_tx_done,4,2                    ; @tx_done
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx[%d] done, slot %d\n"

	.comm	_TX_DESC_BUFLEN,4,2             ; @TX_DESC_BUFLEN
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.no_dead_strip	_cas_tx_ringN
.subsections_via_symbols
