	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_tx_tso_gen_desc
_wil_tx_tso_gen_desc:                   ## @wil_tx_tso_gen_desc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, %r15d
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_wil_to_dev
	movq	%rax, %rdx
	xorl	%eax, %eax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.1:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r12
	movq	%r12, %r15
	subq	8(%r14), %r15
	movq	8(%r12), %rcx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%r13, %r13
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	je	LBB0_2
## %bb.3:
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_skb_frag_dma_map
	movq	%rbx, %rdi
	movl	%eax, %r13d
	movq	_wil_mapped_as_page@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r8d, %ecx
	callq	_dma_map_single
	movq	%rbx, %rdi
	movl	%eax, %r13d
	movq	_wil_mapped_as_single@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%rbx,8)
	movl	%r13d, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_wil_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_6:
	shrq	$4, %r15
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	*(%r14)
	movq	%r12, %rdi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	32(%rbp), %edx
	movl	40(%rbp), %ecx
	movl	48(%rbp), %r8d
	movl	56(%rbp), %r9d
	callq	_wil_tx_desc_offload_setup_tso_edma
	movq	_wil_tso_type_lst@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	24(%rbp), %rdi
	callq	_skb_get
	movq	16(%rbp), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,8)
LBB0_8:
	movq	_DUMP_PREFIX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	leaq	-48(%rbp), %r8
	movl	$32, %edx
	movl	$4, %ecx
	movl	$4, %r9d
	callq	_wil_hex_dump_txrx
	movl	-48(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movq	64(%rbp), %rax
	incl	(%rax)
	xorl	%eax, %eax
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_wil_mapped_as_single,4,2       ## @wil_mapped_as_single
	.comm	_wil_mapped_as_page,4,2         ## @wil_mapped_as_page
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TSO: Skb DMA map error\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_wil_tso_type_lst,4,2           ## @wil_tso_type_lst
L_.str.1:                               ## @.str.1
	.asciz	"TxD "

	.comm	_DUMP_PREFIX_NONE,4,2           ## @DUMP_PREFIX_NONE
	.no_dead_strip	_wil_tx_tso_gen_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_tx_tso_gen_desc
_wil_tx_tso_gen_desc:                   ; @wil_tx_tso_gen_desc
	.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
	mov	x21, x7
	mov	x20, x6
	mov	x25, x5
	mov	x22, x4
	mov	x19, x3
	mov	x23, x2
	mov	x27, x1
	mov	x24, x0
	bl	_wil_to_dev
	cbz	w23, LBB0_3
; %bb.1:
	mov	x26, x0
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x28, [x20, #8]
	ldr	x21, [x24, #8]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	cbz	x25, LBB0_4
; %bb.2:
	mov	x1, x25
	mov	w2, #0
	mov	x3, x23
	bl	_skb_frag_dma_map
	mov	x25, x0
Lloh3:
	adrp	x8, _wil_mapped_as_page@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wil_mapped_as_page@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_10
LBB0_4:
	mov	x1, x27
	mov	x2, x23
	mov	x3, x4
	bl	_dma_map_single
	mov	x25, x0
Lloh5:
	adrp	x8, _wil_mapped_as_single@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wil_mapped_as_single@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	ldr	x9, [x20]
	add	x9, x9, x19, lsl #3
	str	w8, [x9, #4]
	mov	x0, x26
	mov	x1, x25
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_wil_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	sub	x8, x20, x21
	ldr	x9, [x29, #32]
	str	x9, [sp]                        ; 8-byte Folded Spill
	ldp	w27, w26, [x29, #24]
	ldp	w21, w28, [x29, #16]
	lsr	x3, x8, #4
	ldr	x8, [x24]
	add	x0, sp, #24
	mov	x1, x25
	mov	x2, x23
                                        ; kill: def $w3 killed $w3 killed $x3
	blr	x8
	add	x0, sp, #24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x28
	mov	x4, x27
	mov	x5, x26
	bl	_wil_tx_desc_offload_setup_tso_edma
Lloh12:
	adrp	x8, _wil_tso_type_lst@GOTPAGE
Lloh13:
	ldr	x8, [x8, _wil_tso_type_lst@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.8:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_skb_get
	ldr	x8, [x20]
	lsl	x9, x19, #3
	str	w0, [x8, x9]
LBB0_9:
Lloh15:
	adrp	x8, _DUMP_PREFIX_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DUMP_PREFIX_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x4, sp, #24
	mov	w2, #32
	mov	w3, #4
	mov	w5, #4
	mov	w6, #0
	bl	_wil_hex_dump_txrx
	mov	w0, #0
	ldr	w8, [sp, #24]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9, x19, lsl #2]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_wil_mapped_as_single,4,2       ; @wil_mapped_as_single
	.comm	_wil_mapped_as_page,4,2         ; @wil_mapped_as_page
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TSO: Skb DMA map error\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_wil_tso_type_lst,4,2           ; @wil_tso_type_lst
l_.str.1:                               ; @.str.1
	.asciz	"TxD "

	.comm	_DUMP_PREFIX_NONE,4,2           ; @DUMP_PREFIX_NONE
	.no_dead_strip	_wil_tx_tso_gen_desc
.subsections_via_symbols
