	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wil_tx_ring_tso_edma
___wil_tx_ring_tso_edma:                ## @__wil_tx_ring_tso_edma
	.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	%rdx, %r13
	subq	24(%rdi), %r13
	movq	%rcx, %r12
	shrq	$5, %r13
	movq	16(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %r14
	movq	%rcx, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_wil_ring_avail_tx
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -44(%rbp)
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	4(%rax), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	shlq	$4, %r14
	xorl	%edi, %edi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 12(%rax,%r14)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	%rcx, %rax
	jmp	LBB0_33
LBB0_2:
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	movq	%r15, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leal	2(%r14), %ebx
	xorl	%edi, %edi
	cmpl	%ebx, -56(%rbp)                 ## 4-byte Folded Reload
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-136(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	callq	_wil_err_ratelimited
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_4:
	movq	%r12, %rbx
	movq	%r12, %rdi
	callq	_skb_shinfo
	movb	8(%rax), %al
	andb	$-127, %al
	cmpb	$-127, %al
	je	LBB0_5
## %bb.6:
	cmpb	$-128, %al
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_9
## %bb.7:
	movq	%r13, %r12
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_5:
	movl	$1, %edx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %r12
LBB0_8:
	movq	8(%rbx), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.11:
	movq	%rbx, %rdi
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	callq	_tcp_hdrlen
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_skb_network_header_len
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	leal	(%rbx,%r14), %r13d
	addl	(%rax), %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movq	24(%r10), %rsi
	movq	_wil_tso_type_hdr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	leaq	-44(%rbp), %rax
	movq	%r15, %rdi
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movl	%r13d, %edx
	movq	-88(%rbp), %r11                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	pushq	%rbx
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	%r12
	callq	_wil_tx_tso_gen_desc
	addq	$64, %rsp
	testl	%eax, %eax
	jne	LBB0_1
## %bb.12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_skb_headlen
	movl	%eax, %r14d
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	subl	%r13d, %r14d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	movslq	%r13d, %rsi
	shlq	$2, %rsi
	addq	24(%rbx), %rsi
	movl	-44(%rbp), %eax
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	addl	%r13d, %eax
	cltd
	idivl	4(%r12)
	movl	%edx, %ecx
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_13
## %bb.14:
	movq	_wil_tso_type_lst@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_33:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_wil_tso_type_first@GOTPCREL(%rip), %rax
LBB0_15:
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movl	(%rax), %r8d
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%r9d, %r9d
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	pushq	%r10
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	callq	_wil_tx_tso_gen_desc
	addq	$64, %rsp
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_16
## %bb.23:
	cmpl	$0, -44(%rbp)
	jle	LBB0_33
LBB0_24:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	decl	%r13d
	leaq	-112(%rbp), %r14
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_wil_to_dev
	movq	%rax, %rdi
	movl	-44(%rbp), %eax
	addl	%r13d, %eax
	cltd
	idivl	4(%r12)
	movq	16(%r12), %rax
	movslq	%edx, %rbx
	movl	(%rax,%rbx,4), %eax
	shlq	$2, %rbx
	movl	%eax, -112(%rbp)
	addq	8(%r12), %rbx
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_wil_tx_desc_unmap_edma
	movq	%rbx, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	-44(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, -44(%rbp)
	cmpl	$1, %eax
	jg	LBB0_25
## %bb.26:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_16:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_27
## %bb.17:
	leal	-1(%rax), %ecx
	shlq	$2, %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	16(%rax), %r14
	addq	%rbx, %r14
	movq	%r14, %rdi
	callq	_skb_frag_size
	movl	-44(%rbp), %r8d
	movq	%r12, %r13
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movl	%r15d, %edx
	movl	%eax, %r15d
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	movl	-44(%rbp), %eax
	addl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	idivl	4(%r13)
	movl	%edx, %ecx
	movq	_wil_tso_type_mid@GOTPCREL(%rip), %rax
	cmpq	%rbx, -144(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_wil_tso_type_lst@GOTPCREL(%rip), %rax
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	(%rax), %r8d
	subq	$8, %rsp
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movq	%r14, %r9
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_wil_tx_tso_gen_desc
	addq	$64, %rsp
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	movq	%r13, %r12
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_19 Depth=1
	addq	$4, %rbx
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	incl	%r15d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rbx, %rax
	jne	LBB0_19
LBB0_27:
	movq	%r12, %rdi
	callq	_wil_ring_used_tx
	movl	%eax, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	8(%r15), %edi
	movl	-44(%rbp), %edx
	addl	%eax, %edx
	movl	%eax, %esi
	callq	_wil_val_in_range
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	xorl	%eax, %eax
	callq	_get_cycles
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	subl	(%rcx,%rdx), %eax
	addl	%eax, 8(%rcx,%rdx)
	movl	-44(%rbp), %r8d
	addl	%r14d, %r8d
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movq	-136(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
LBB0_29:
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	callq	_wil_ring_advance_head
	movl	(%r12), %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	xorl	%eax, %eax
	callq	_wmb
	cmpq	$0, (%r15)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_31
## %bb.30:
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, 16(%rbx)
	jmp	LBB0_32
LBB0_22:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	cmpl	$0, -44(%rbp)
	jg	LBB0_24
	jmp	LBB0_33
LBB0_31:
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_32:
	movl	(%r12), %edx
	movl	24(%r12), %esi
	movq	%r15, %rdi
	callq	_wil_w
	xorl	%eax, %eax
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx_ring_tso: %d bytes to ring %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"TSO: Tx ring[%2d] full. No space for %d fragments\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
L_.str.2:                               ## @.str.2
	.asciz	"TSO: process header descriptor, hdrlen %u\n"

	.comm	_wil_tso_type_hdr,4,2           ## @wil_tso_type_hdr
L_.str.3:                               ## @.str.3
	.asciz	"TSO: process skb head, headlen %u\n"

	.comm	_wil_tso_type_first,4,2         ## @wil_tso_type_first
	.comm	_wil_tso_type_lst,4,2           ## @wil_tso_type_lst
L_.str.4:                               ## @.str.4
	.asciz	"TSO: frag[%d]: len %u, descs_used %d\n"

	.comm	_wil_tso_type_mid,4,2           ## @wil_tso_type_mid
L_.str.5:                               ## @.str.5
	.asciz	"Ring[%2d] not idle %d -> %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"TSO: Tx swhead %d -> %d\n"

	.no_dead_strip	___wil_tx_ring_tso_edma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wil_tx_ring_tso_edma
___wil_tx_ring_tso_edma:                ; @__wil_tx_ring_tso_edma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x3
	mov	x20, x2
	mov	x19, x0
	ldp	x22, x8, [x0, #16]
	sub	x28, x2, x8
	lsr	x23, x28, #5
	mov	x0, x3
	bl	_skb_shinfo
	ldr	w27, [x0]
	mov	x0, x20
	bl	_wil_ring_avail_tx
	mov	x24, x0
	ldr	w26, [x20]
	str	wzr, [sp, #76]
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w25, [x0, #4]
	ldr	w2, [x21]
	str	x23, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_txrx
	add	x8, x22, w23, sxtw #4
	ldr	w8, [x8, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	str	w25, [sp, #68]                  ; 4-byte Folded Spill
	add	w25, w27, #2
	cmp	w24, w25
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	x3, x25
	bl	_wil_err_ratelimited
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_5:
	mov	x0, x26
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0, #8]
	mov	w9, #129
	and	w8, w8, w9
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.8:
	mov	w10, #0
	b	LBB0_10
LBB0_9:
	mov	w10, #1
LBB0_10:
	ldr	x8, [x21, #8]
Lloh8:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.11:
	mov	x0, x21
	str	w10, [sp, #60]                  ; 4-byte Folded Spill
	bl	_tcp_hdrlen
	mov	x25, x0
	mov	x0, x21
	bl	_skb_network_header_len
	mov	x24, x0
Lloh11:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	add	w9, w0, w25
	str	w26, [sp, #64]                  ; 4-byte Folded Spill
	add	w26, w9, w8
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x26
	bl	_wil_dbg_txrx
	ldr	x1, [x21, #24]
Lloh16:
	adrp	x8, _wil_tso_type_hdr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _wil_tso_type_hdr@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	add	x8, sp, #76
	str	x8, [sp, #16]
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	stp	w24, w9, [sp, #8]
	stp	w24, w25, [sp, #52]             ; 8-byte Folded Spill
	str	w25, [sp, #4]
	ldp	w24, w25, [sp, #60]             ; 8-byte Folded Reload
	str	w24, [sp]
	mov	x0, x19
	mov	x2, x26
	mov	x3, x25
	mov	x5, #0
	mov	x6, x20
	mov	x7, x21
	bl	_wil_tx_tso_gen_desc
	cbnz	w0, LBB0_1
; %bb.12:
	mov	x0, x21
	bl	_skb_headlen
	sub	w2, w0, w26
	str	w2, [sp, #40]                   ; 4-byte Folded Spill
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_txrx
	ldr	x8, [x21, #24]
	add	x1, x8, w26, sxtw #2
	ldr	w8, [sp, #76]
	add	w8, w8, w25
	ldr	w9, [x20, #4]
	sdiv	w10, w8, w9
Lloh21:
	adrp	x11, _wil_tso_type_first@GOTPAGE
Lloh22:
	ldr	x11, [x11, _wil_tso_type_first@GOTPAGEOFF]
	msub	w3, w10, w9, w8
Lloh23:
	adrp	x8, _wil_tso_type_lst@GOTPAGE
Lloh24:
	ldr	x8, [x8, _wil_tso_type_lst@GOTPAGEOFF]
	cmp	w27, #0
	csel	x8, x8, x11, eq
	ldr	w4, [x8]
	add	x8, sp, #76
	str	x8, [sp, #16]
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #8]
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	stp	w24, w8, [sp]
	mov	x0, x19
	ldr	w2, [sp, #40]                   ; 4-byte Folded Reload
	mov	x5, #0
	mov	x6, x20
	mov	x7, x21
	bl	_wil_tx_tso_gen_desc
	mov	x26, x0
	cbz	w0, LBB0_16
LBB0_13:
	ldr	w8, [sp, #76]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.14:
	ldr	w8, [sp, #64]                   ; 4-byte Folded Reload
	sub	w22, w8, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_wil_to_dev
	ldr	w8, [sp, #76]
	add	w8, w22, w8
	ldr	w9, [x20, #4]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	sbfiz	x8, x8, #2, #32
	ldp	x10, x9, [x20, #8]
	ldr	w9, [x9, x8]
	str	w9, [sp, #72]
	add	x21, x10, x8
	add	x1, sp, #72
	mov	x2, x21
	bl	_wil_tx_desc_unmap_edma
	mov	x0, x21
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [sp, #76]
	subs	w8, w8, #1
	str	w8, [sp, #76]
	b.gt	LBB0_15
	b	LBB0_5
LBB0_16:
	cmp	w27, #1
	b.lt	LBB0_20
; %bb.17:
	mov	w25, #0
	mov	x24, #0
	sub	w8, w27, #1
	lsl	x9, x8, #2
	lsl	x8, x27, #2
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #16]
	add	x26, x8, x24
	mov	x0, x26
	bl	_skb_frag_size
	mov	x27, x0
	ldr	w8, [sp, #76]
	stp	x27, x8, [sp]
	mov	x0, x19
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x25
	bl	_wil_dbg_txrx
	ldr	w8, [sp, #76]
	ldr	w9, [sp, #64]                   ; 4-byte Folded Reload
	add	w8, w8, w9
	ldr	w9, [x20, #4]
	sdiv	w10, w8, w9
	msub	w3, w10, w9, w8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x8, x24
Lloh27:
	adrp	x8, _wil_tso_type_lst@GOTPAGE
Lloh28:
	ldr	x8, [x8, _wil_tso_type_lst@GOTPAGEOFF]
Lloh29:
	adrp	x9, _wil_tso_type_mid@GOTPAGE
Lloh30:
	ldr	x9, [x9, _wil_tso_type_mid@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w4, [x8]
	add	x8, sp, #76
	str	x8, [sp, #16]
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #8]
	ldr	w9, [sp, #56]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x27
	mov	x5, x26
	mov	x6, x20
	mov	x7, x21
	bl	_wil_tx_tso_gen_desc
	cbnz	w0, LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x24, x24, #4
	add	w25, w25, #1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x8, x24
	b.ne	LBB0_18
LBB0_20:
	mov	x0, x20
	bl	_wil_ring_used_tx
	mov	x24, x0
	ldr	w0, [x19, #8]
	ldr	w8, [sp, #76]
	add	w2, w8, w24
	mov	x1, x24
	bl	_wil_val_in_range
	cbz	x0, LBB0_22
; %bb.21:
	sbfx	x25, x28, #5, #32
	bl	_get_cycles
	add	x8, x22, x25, lsl #4
	ldr	w9, [x8]
	ldr	w10, [x8, #8]
	sub	w9, w0, w9
	add	w9, w10, w9
	str	w9, [x8, #8]
	ldr	w8, [sp, #76]
	add	w8, w8, w24
	stp	x24, x8, [sp]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_wil_dbg_txrx
LBB0_22:
	ldr	w1, [sp, #76]
	mov	x0, x20
	bl	_wil_ring_advance_head
	ldr	w8, [x20]
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	ldr	w2, [sp, #64]                   ; 4-byte Folded Reload
	bl	_wil_dbg_txrx
	bl	_wmb
	ldr	x8, [x19]
	cbz	x8, LBB0_25
; %bb.23:
	bl	_ktime_get
	str	w0, [x21, #16]
	b	LBB0_26
LBB0_24:
	mov	x26, x0
	b	LBB0_13
LBB0_25:
	ldr	x0, [x21, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_26:
	ldr	w1, [x20, #24]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_wil_w
	mov	w26, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx_ring_tso: %d bytes to ring %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"TSO: Tx ring[%2d] full. No space for %d fragments\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
l_.str.2:                               ; @.str.2
	.asciz	"TSO: process header descriptor, hdrlen %u\n"

	.comm	_wil_tso_type_hdr,4,2           ; @wil_tso_type_hdr
l_.str.3:                               ; @.str.3
	.asciz	"TSO: process skb head, headlen %u\n"

	.comm	_wil_tso_type_first,4,2         ; @wil_tso_type_first
	.comm	_wil_tso_type_lst,4,2           ; @wil_tso_type_lst
l_.str.4:                               ; @.str.4
	.asciz	"TSO: frag[%d]: len %u, descs_used %d\n"

	.comm	_wil_tso_type_mid,4,2           ; @wil_tso_type_mid
l_.str.5:                               ; @.str.5
	.asciz	"Ring[%2d] not idle %d -> %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"TSO: Tx swhead %d -> %d\n"

	.no_dead_strip	___wil_tx_ring_tso_edma
.subsections_via_symbols
