	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_map_tx_skb
_alx_map_tx_skb:                        ## @alx_map_tx_skb
	.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	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rdi), %r14d
	movq	24(%rdi), %rax
	movslq	%r14d, %rcx
	shlq	$5, %rcx
	leaq	(%rax,%rcx), %rdi
	movl	(%rax,%rcx), %edx
	movq	_TPD_LSO_V2_SHIFT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	btl	%esi, %edx
	movq	%rdi, %r8
	jae	LBB0_2
## %bb.1:
	leal	1(%r14), %edx
	xorl	%esi, %esi
	cmpl	4(%r12), %edx
	cmovnel	%edx, %esi
	movl	%esi, (%r12)
	movslq	%esi, %rdx
	shlq	$5, %rdx
	leaq	(%rax,%rdx), %r8
	movq	8(%rax,%rcx), %rsi
	movq	%rsi, 8(%rax,%rdx)
	movl	24(%rax,%rcx), %ecx
	movl	%ecx, 24(%rax,%rdx)
	movl	(%rdi), %ecx
	movl	%ecx, (%rax,%rdx)
LBB0_2:
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_skb_headlen
	movl	%eax, %edx
	movl	16(%r12), %edi
	movl	(%r13), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_dma_map_single
	movl	%eax, %r15d
	movl	16(%r12), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	cmpl	(%r12), %r14d
	jne	LBB0_10
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %r14d
	cmpl	(%r12), %eax
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_alx_free_txbuf
	incl	%r14d
	xorl	%eax, %eax
	cmpl	4(%r12), %r14d
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %eax
	jmp	LBB0_12
LBB0_3:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
	movslq	(%r12), %rdi
	shlq	$3, %rdi
	addq	8(%r12), %rdi
	movq	_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_dma_unmap_len_set
	movslq	(%r12), %rdi
	shlq	$3, %rdi
	addq	8(%r12), %rdi
	movl	%r15d, %esi
	movl	%r15d, %edx
	callq	_dma_unmap_addr_set
	movl	%r15d, %edi
	callq	_cpu_to_le64
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r12)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	movq	%r13, %r15
	jle	LBB0_8
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	(%r15), %eax
	incl	%eax
	cmpl	4(%r15), %eax
	movl	$0, %ecx
	cmovel	%ecx, %eax
	movl	%eax, (%r15)
	movq	24(%r15), %rcx
	movslq	%eax, %r13
	shlq	$5, %r13
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rcx,%r13)
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	%eax, %ecx
	movl	16(%r15), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	callq	_skb_frag_dma_map
	movl	%eax, %ebx
	movq	%r15, %r12
	movl	16(%r15), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r12), %rdi
	shlq	$3, %rdi
	addq	8(%r12), %rdi
	movq	_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_dma_unmap_len_set
	movslq	(%r12), %rdi
	shlq	$3, %rdi
	addq	8(%r12), %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_dma_unmap_addr_set
	movl	%ebx, %edi
	callq	_cpu_to_le64
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, 16(%r12,%r13)
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r12,%r13)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	addq	$4, -48(%rbp)                   ## 8-byte Folded Spill
	movq	%rbx, %rcx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rbx
	movq	%r15, %rbx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_5
## %bb.7:
	addq	%r13, %r12
LBB0_8:
	movq	_TPD_EOP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edi
	shll	%cl, %edi
	callq	_cpu_to_le32
	orl	%eax, (%r12)
	movq	8(%r15), %rax
	movslq	(%r15), %rcx
	movq	%rbx, (%rax,%rcx,8)
	incl	%ecx
	xorl	%eax, %eax
	cmpl	4(%r15), %ecx
	cmovel	%eax, %ecx
	movl	%ecx, (%r15)
LBB0_14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPD_LSO_V2_SHIFT,4,2           ## @TPD_LSO_V2_SHIFT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_size,4,2                       ## @size
	.comm	_TPD_EOP_SHIFT,4,2              ## @TPD_EOP_SHIFT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alx_map_tx_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_map_tx_skb
_alx_map_tx_skb:                        ; @alx_map_tx_skb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	ldr	w21, [x0]
	ldr	x8, [x0, #24]
	sxtw	x9, w21
	add	x24, x8, x9, lsl #5
	ldr	w9, [x24]
Lloh0:
	adrp	x10, _TPD_LSO_V2_SHIFT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TPD_LSO_V2_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	lsr	w9, w9, w10
	mov	x25, x24
	tbz	w9, #0, LBB0_2
; %bb.1:
	add	w9, w21, #1
	ldr	w10, [x19, #4]
	cmp	w9, w10
	csinc	w9, wzr, w21, eq
	str	w9, [x19]
	sxtw	x9, w9
	add	x25, x8, x9, lsl #5
	ldr	x8, [x24, #8]
	str	x8, [x25, #8]
	ldr	w8, [x24, #24]
	str	w8, [x25, #24]
	ldr	w8, [x24]
	str	w8, [x25]
LBB0_2:
	mov	x0, x20
	bl	_skb_headlen
	mov	x22, x0
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
Lloh3:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x2, x22
	bl	_dma_map_single
	mov	x23, x0
	ldr	w0, [x19, #16]
	mov	x1, x23
	bl	_dma_mapping_error
	cbz	x0, LBB0_6
LBB0_3:
	ldr	w8, [x19]
	cmp	w21, w8
	b.eq	LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_alx_free_txbuf
	add	w8, w21, #1
	ldp	w10, w9, [x19]
	cmp	w8, w9
	csinc	w21, wzr, w21, eq
	cmp	w21, w10
	b.ne	LBB0_4
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_6:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x0, x8, x9, lsl #3
Lloh8:
	adrp	x8, _size@GOTPAGE
Lloh9:
	ldr	x8, [x8, _size@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_dma_unmap_len_set
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x0, x8, x9, lsl #3
	mov	x1, x23
	mov	x2, x23
	bl	_dma_unmap_addr_set
	mov	x0, x23
	bl	_cpu_to_le64
	str	x0, [x25, #16]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x25, #8]
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x28, #0
	mov	x27, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x23, x8, x28
	ldp	w8, w9, [x19]
	add	w10, w8, #1
	cmp	w10, w9
	csinc	w8, wzr, w8, eq
	str	w8, [x19]
	ldr	x9, [x19, #24]
	sxtw	x8, w8
	add	x25, x9, x8, lsl #5
	ldr	w8, [x24]
	str	w8, [x25]
	mov	x0, x23
	bl	_skb_frag_size
	mov	x22, x0
	ldr	w0, [x19, #16]
	ldr	w4, [x26]
	mov	x1, x23
	mov	w2, #0
	mov	x3, x22
	bl	_skb_frag_dma_map
	mov	x23, x0
	ldr	w0, [x19, #16]
	mov	x1, x23
	bl	_dma_mapping_error
	cbnz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x0, x8, x9, lsl #3
Lloh11:
	adrp	x8, _size@GOTPAGE
Lloh12:
	ldr	x8, [x8, _size@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_dma_unmap_len_set
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x0, x8, x9, lsl #3
	mov	x1, x23
	mov	x2, x23
	bl	_dma_unmap_addr_set
	mov	x0, x23
	bl	_cpu_to_le64
	str	x0, [x25, #16]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x25, #8]
	add	x27, x27, #1
	mov	x0, x20
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x28, x28, #4
	cmp	x27, x8
	b.lt	LBB0_8
LBB0_10:
Lloh14:
	adrp	x8, _TPD_EOP_SHIFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TPD_EOP_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w0, w9, w8
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
	ldr	x8, [x19, #8]
	ldp	w9, w10, [x19]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	str	x20, [x8, x9, lsl #3]
	add	w8, w9, #1
	cmp	w8, w10
	csinc	w8, wzr, w9, eq
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TPD_LSO_V2_SHIFT,4,2           ; @TPD_LSO_V2_SHIFT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_size,4,2                       ; @size
	.comm	_TPD_EOP_SHIFT,4,2              ; @TPD_EOP_SHIFT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alx_map_tx_skb
.subsections_via_symbols
