	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_xmit_tx_ringN
_cas_xmit_tx_ringN:                     ## @cas_xmit_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	40(%rdi), %r12
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r14
	leaq	(,%r14,4), %r13
	movq	8(%rdi), %rdi
	addq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, %esi
	callq	_TX_BUFFS_AVAIL
	movl	%eax, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rbx
	callq	_CAS_TABORT
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	incl	%eax
	imull	%r15d, %eax
	cmpl	%eax, %r14d
	jle	LBB0_1
## %bb.2:
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rdx
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	movq	%rbx, %r13
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_skb_checksum_start_offset
	movl	8(%r13), %r14d
	addl	%eax, %r14d
	movq	_TX_DESC_CSUM_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	_TX_DESC_CSUM_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_CAS_BASE
	movl	%eax, %r12d
	orl	%r15d, %r12d
	movq	_TX_DESC_CSUM_STUFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_CAS_BASE
	orl	%r12d, %eax
	movq	-96(%rbp), %r13                 ## 8-byte Reload
LBB0_4:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	32(%rbx), %rcx
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movslq	(%rax,%rdx,4), %rsi
	movq	(%rcx,%rdx,8), %rax
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, (%rax,%rsi,8)
	movq	%r13, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_skb_headlen
	movl	%eax, %r15d
	movq	24(%rbx), %r14
	movq	16(%r13), %rdi
	callq	_virt_to_page
	movl	%eax, %r12d
	movq	16(%r13), %rdi
	callq	_offset_in_page
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_pci_map_page
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_cas_calc_tabort
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	subl	%ebx, %r15d
	movq	_TX_DESC_SOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	orl	-48(%rbp), %r9d                 ## 4-byte Folded Reload
	movl	$0, (%rsp)
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_cas_write_txd
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_TX_DESC_NEXT
	movq	%r13, %rbx
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_tx_tiny_buf
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_skb_copy_from_linear_data_offset
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_tx_tiny_map
	xorl	%ecx, %ecx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	sete	%cl
	movl	%ecx, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movl	%ebx, %r8d
	movl	%r12d, %r14d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_cas_write_txd
	jmp	LBB0_7
LBB0_1:
	movq	%r12, %rdi
	callq	_netif_stop_queue
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %r13
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	movl	$1, %eax
	jmp	LBB0_16
LBB0_6:
	movq	_TX_DESC_SOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	orl	-48(%rbp), %r9d                 ## 4-byte Folded Reload
	xorl	%eax, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	sete	%al
	movl	%eax, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_cas_write_txd
	movl	%r12d, %r13d
	movq	%rbx, %r15
LBB0_7:
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_TX_DESC_NEXT
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.8:
	leaq	-4(,%r15,4), %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	shlq	$2, %r15
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %r8d
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	subl	%ebx, %r8d
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_cas_write_txd
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_TX_DESC_NEXT
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_skb_frag_page
	movl	%eax, %edi
	callq	_cas_page_map
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_tx_tiny_buf
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_skb_frag_off
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	addq	%r14, %rax
	movslq	%r13d, %rsi
	addq	%rax, %rsi
	movl	-100(%rbp), %r13d               ## 4-byte Reload
	movslq	%r13d, %rax
	subq	%rax, %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movl	%ebx, %r14d
	callq	_cas_page_unmap
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_tx_tiny_map
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	%eax, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	cmpq	%r15, -136(%rbp)                ## 8-byte Folded Reload
	sete	%al
	movl	%eax, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%r13d, %r8d
	callq	_cas_write_txd
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_TX_DESC_NEXT
	addq	$4, %r15
	cmpq	%r15, -88(%rbp)                 ## 8-byte Folded Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %r14
	addq	%r15, %r14
	movq	%r14, %rdi
	callq	_skb_frag_size
	movl	%eax, %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	24(%r12), %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_skb_frag_dma_map
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_skb_frag_off
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_cas_calc_tabort
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_13:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_TX_BUFFS_AVAIL
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_CAS_TABORT
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	incl	%ecx
	imull	%eax, %ecx
	cmpl	%ecx, %r15d
	movq	-120(%rbp), %r13                ## 8-byte Reload
	jg	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_netif_stop_queue
LBB0_15:
	movq	_tx_queued@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_TX_BUFFS_AVAIL
	movl	%eax, 16(%rsp)
	movl	%r12d, 8(%rsp)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, (%rsp)
	leaq	L_.str.1(%rip), %r8
	movq	%rbx, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	%r13, %rcx
	movl	%r14d, %r9d
	callq	_netif_printk
	movq	16(%rbx), %r15
	movl	%r14d, %edi
	callq	_REG_TX_KICKN
	addq	%rax, %r15
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_writel
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	addq	8(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_16:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG! Tx Ring full when queue awake!\n"

	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_TX_DESC_CSUM_EN,4,2            ## @TX_DESC_CSUM_EN
	.comm	_TX_DESC_CSUM_START,4,2         ## @TX_DESC_CSUM_START
	.comm	_TX_DESC_CSUM_STUFF,4,2         ## @TX_DESC_CSUM_STUFF
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_TX_DESC_SOF,4,2                ## @TX_DESC_SOF
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_tx_queued,4,2                  ## @tx_queued
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"tx[%d] queued, slot %d, skblen %d, avail %d\n"

	.no_dead_strip	_cas_xmit_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_xmit_tx_ringN
_cas_xmit_tx_ringN:                     ; @cas_xmit_tx_ringN
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x27, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #40]
	ldr	x8, [x0, #8]
	sxtw	x24, w21
	add	x0, x8, w1, sxtw #2
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x21
	bl	_TX_BUFFS_AVAIL
	mov	x20, x0
	mov	x0, x19
	bl	_CAS_TABORT
	mov	x23, x0
	mov	x0, x27
	bl	_skb_shinfo
	ldr	w8, [x0]
	madd	w8, w23, w8, w23
	cmp	w20, w8
	b.le	LBB0_3
; %bb.1:
	ldr	x8, [x27]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x27
	bl	_skb_checksum_start_offset
	mov	x1, x0
	ldr	w8, [x27, #8]
	add	w20, w8, w0
Lloh3:
	adrp	x8, _TX_DESC_CSUM_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_DESC_CSUM_EN@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _TX_DESC_CSUM_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_DESC_CSUM_START@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_CAS_BASE
	orr	w22, w0, w22
Lloh9:
	adrp	x8, _TX_DESC_CSUM_STUFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TX_DESC_CSUM_STUFF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_CAS_BASE
	orr	w28, w22, w0
	b	LBB0_5
LBB0_3:
	mov	x0, x22
	bl	_netif_stop_queue
	ldr	x8, [x19, #8]
	add	x0, x8, x24, lsl #2
	bl	_spin_unlock_irqrestore
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_netdev_err
	mov	w0, #1
	b	LBB0_16
LBB0_4:
	mov	w28, #0
LBB0_5:
	ldr	x8, [x19]
	ldrsw	x22, [x8, x24, lsl #2]
	ldr	x8, [x19, #32]
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x8, [x8, x24, lsl #3]
	str	x27, [x8, x22, lsl #3]
	mov	x0, x27
	bl	_skb_shinfo
	ldr	w23, [x0]
	mov	x0, x27
	bl	_skb_headlen
	mov	x26, x0
	ldr	x20, [x19, #24]
	ldr	x0, [x27, #16]
	bl	_virt_to_page
	mov	x25, x0
	ldr	x0, [x27, #16]
	bl	_offset_in_page
	mov	x2, x0
Lloh14:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x25
	mov	x3, x26
	bl	_pci_map_page
	mov	x20, x0
	ldr	x1, [x27, #16]
	mov	x0, x19
	mov	x2, x26
	bl	_cas_calc_tabort
	mov	x25, x0
	bl	_unlikely
	mov	x24, x27
	cbz	x0, LBB0_7
; %bb.6:
	sub	w26, w26, w25
Lloh17:
	adrp	x8, _TX_DESC_SOF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TX_DESC_SOF@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w5, w8, w28
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x26
	mov	w6, #0
	bl	_cas_write_txd
	mov	x0, x21
	mov	x1, x22
	bl	_TX_DESC_NEXT
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_tx_tiny_buf
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
	mov	x3, x25
	bl	_skb_copy_from_linear_data_offset
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_tx_tiny_map
	mov	x3, x0
	cmp	w23, #0
	cset	w6, eq
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x4, x25
	mov	x5, x28
	bl	_cas_write_txd
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _TX_DESC_SOF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TX_DESC_SOF@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w5, w8, w28
	cmp	w23, #0
	cset	w6, eq
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x26
	bl	_cas_write_txd
	mov	x20, x22
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	bl	_TX_DESC_NEXT
	mov	x25, x0
	cmp	w23, #1
	str	x24, [sp, #40]                  ; 8-byte Folded Spill
	b.lt	LBB0_13
; %bb.9:
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	mov	x22, #0
	lsl	x8, x23, #2
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	sub	x8, x8, #4
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, x23
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	cmp	x8, x22
	cset	w6, eq
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	mov	x3, x20
	mov	x4, x26
	mov	x5, x23
	bl	_cas_write_txd
	mov	x0, x21
	mov	x1, x25
	bl	_TX_DESC_NEXT
	mov	x25, x0
	add	x22, x22, #4
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cmp	x8, x22
	b.eq	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x23, x28
	mov	x0, x24
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x27, x8, x22
	mov	x0, x27
	bl	_skb_frag_size
	mov	x26, x0
	ldr	x0, [x19, #24]
Lloh23:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
	mov	x1, x27
	mov	w2, #0
	mov	x3, x26
	bl	_skb_frag_dma_map
	mov	x20, x0
	mov	x0, x27
	bl	_skb_frag_off
	mov	x1, x0
	mov	x0, x19
	mov	x2, x26
	bl	_cas_calc_tabort
	mov	x28, x0
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w4, w26, w28
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	mov	x3, x20
	mov	x5, x23
	mov	w6, #0
	bl	_cas_write_txd
	mov	x0, x21
	mov	x1, x25
	bl	_TX_DESC_NEXT
	mov	x25, x0
	mov	x0, x27
	bl	_skb_frag_page
	bl	_cas_page_map
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	bl	_tx_tiny_buf
	mov	x24, x0
	mov	x0, x27
	bl	_skb_frag_off
	add	x8, x20, x0
	add	x8, x8, w26, sxtw
	sub	x1, x8, w28, sxtw
	mov	x0, x24
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	mov	x2, x28
	bl	_memcpy
	mov	x0, x20
	bl	_cas_page_unmap
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	ldr	x3, [sp, #32]                   ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_tx_tiny_map
	mov	x20, x0
	mov	x26, x28
	b	LBB0_10
LBB0_13:
	ldr	x8, [x19]
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	str	w25, [x8, x24, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_TX_BUFFS_AVAIL
	mov	x20, x0
	mov	x0, x19
	bl	_CAS_TABORT
Lloh26:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	madd	w8, w0, w8, w0
	cmp	w20, w8
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	b.gt	LBB0_15
; %bb.14:
	mov	x0, x26
	bl	_netif_stop_queue
LBB0_15:
Lloh29:
	adrp	x8, _tx_queued@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tx_queued@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
Lloh32:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh34:
	ldr	w23, [x8]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w22, [x8, #12]
	mov	x0, x19
	mov	x1, x21
	bl	_TX_BUFFS_AVAIL
	str	w0, [sp]
Lloh35:
	adrp	x4, l_.str.1@PAGE
Lloh36:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x26
	mov	x5, x21
	mov	x6, x25
	mov	x7, x22
	bl	_netif_printk
	ldr	x20, [x19, #16]
	mov	x0, x21
	bl	_REG_TX_KICKN
	add	x1, x0, x20
	mov	x0, x25
	bl	_writel
	ldr	x8, [x19, #8]
	add	x0, x8, x24, lsl #2
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG! Tx Ring full when queue awake!\n"

	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_TX_DESC_CSUM_EN,4,2            ; @TX_DESC_CSUM_EN
	.comm	_TX_DESC_CSUM_START,4,2         ; @TX_DESC_CSUM_START
	.comm	_TX_DESC_CSUM_STUFF,4,2         ; @TX_DESC_CSUM_STUFF
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_TX_DESC_SOF,4,2                ; @TX_DESC_SOF
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_tx_queued,4,2                  ; @tx_queued
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"tx[%d] queued, slot %d, skblen %d, avail %d\n"

	.no_dead_strip	_cas_xmit_tx_ringN
.subsections_via_symbols
