	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_tx_map
_fm10k_tx_map:                          ## @fm10k_tx_map
	.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, %r14
	movq	%rdi, %r15
	movq	8(%rsi), %r12
	movl	20(%rsi), %esi
	movq	(%rdi), %rbx
	movq	%r12, %rdi
	callq	_fm10k_tx_desc_flags
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_FM10K_TX_DESC
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_skb_vlan_tag_get
	movl	%eax, %edi
	callq	_cpu_to_le16
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	callq	_skb_headlen
	movl	%eax, %r14d
	movq	(%r12), %rsi
	movl	24(%r15), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edx
	callq	_dma_map_single
	movl	%eax, %r13d
	movl	8(%r12), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rbx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	24(%r15), %edi
	movl	%r13d, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_4
LBB0_17:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	24(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %r14
	shlq	$3, %r14
	addq	16(%r15), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_fm10k_unmap_and_free_tx_resource
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r14
	je	LBB0_18
## %bb.22:
	movq	%rax, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	decq	%r12
	leaq	(%r12,%r12,2), %rbx
	shlq	$3, %rbx
	addq	16(%r15), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_fm10k_unmap_and_free_tx_resource
	cmpq	%r14, %rbx
	je	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	8(%r15), %r12
	jmp	LBB0_25
LBB0_4:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	_FM10K_MAX_DATA_PER_TXD@GOTPCREL(%rip), %rbx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %r12
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	incq	%r15
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r12
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	%eax, %r14d
	subl	%eax, -68(%rbp)                 ## 4-byte Folded Spill
	movl	24(%r12), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_skb_frag_dma_map
	movl	%eax, %r13d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r15,2), %r15
	shlq	$3, %r15
	addq	16(%r12), %r15
	addq	$4, %rbx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	24(%r12), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	movq	_FM10K_MAX_DATA_PER_TXD@GOTPCREL(%rip), %rbx
	jne	LBB0_17
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_dma_unmap_len_set
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r13d, %edx
	callq	_dma_unmap_addr_set
	xorl	%edi, %edi
	cmpl	(%rbx), %r14d
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	_FM10K_MAX_DATA_PER_TXD@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=2
	addq	$8, %r12
	incq	%rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	_FM10K_MAX_DATA_PER_TXD@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	addl	%eax, %r13d
	subl	%eax, %r14d
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %r8d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_fm10k_tx_desc_push
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_FM10K_TX_DESC
	movq	%rax, %r12
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_fm10k_tx_desc_push
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_FM10K_TX_DESC
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_18:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_26:
	movq	%r12, (%r15)
LBB0_27:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_FM10K_TXD_FLAG_LAST@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	orl	(%rax), %r9d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	1(%rdx), %rbx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	callq	_fm10k_tx_desc_push
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovneq	%rcx, %rbx
	movq	%r15, %rdi
	callq	_txring_txq
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	16(%r14), %esi
	movl	%eax, %edi
	callq	_netdev_tx_sent_queue
	movq	8(%r14), %rdi
	callq	_skb_tx_timestamp
	xorl	%eax, %eax
	callq	_wmb
	movq	%r12, (%r14)
	movq	%rbx, (%r15)
	movq	_DESC_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_fm10k_maybe_stop_tx
	movq	%r15, %rdi
	callq	_txring_txq
	movl	%eax, %edi
	callq	_netif_xmit_stopped
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	xorl	%eax, %eax
	callq	_netdev_xmit_more
	testl	%eax, %eax
	jne	LBB0_27
LBB0_21:
	movl	28(%r15), %esi
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_len,4,2                        ## @len
	.comm	_FM10K_MAX_DATA_PER_TXD,4,2     ## @FM10K_MAX_DATA_PER_TXD
	.comm	_FM10K_TXD_FLAG_LAST,4,2        ## @FM10K_TXD_FLAG_LAST
	.comm	_DESC_NEEDED,4,2                ## @DESC_NEEDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX DMA map failed\n"

	.no_dead_strip	_fm10k_tx_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_tx_map
_fm10k_tx_map:                          ; @fm10k_tx_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	x24, [x1, #8]
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w1, [x1, #20]
	ldr	x21, [x0]
	mov	x0, x24
	bl	_fm10k_tx_desc_flags
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	bl	_FM10K_TX_DESC
	mov	x22, x0
	mov	x0, x24
	bl	_skb_vlan_tag_present
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_skb_vlan_tag_get
	bl	_cpu_to_le16
LBB0_2:
	str	x0, [x22]
	mov	x0, x24
	bl	_skb_headlen
	mov	x25, x0
	ldr	x1, [x24]
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x2, x25
	bl	_dma_map_single
	mov	x26, x0
	ldr	w28, [x24, #8]
	mov	x0, x24
	bl	_skb_shinfo
	ldr	x24, [x0]
	ldr	w0, [x19, #24]
	mov	x1, x26
	bl	_dma_mapping_error
	cbz	x0, LBB0_10
LBB0_3:
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x8, [x19, #16]
	mov	w9, #24
	madd	x22, x21, x9, x8
	mov	x0, x19
	mov	x1, x22
	bl	_fm10k_unmap_and_free_tx_resource
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	cmp	x22, x23
	b.eq	LBB0_8
; %bb.4:
	mov	w20, #24
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x21, x21, #1
	ldr	x8, [x19, #16]
	madd	x22, x21, x20, x8
	mov	x0, x19
	mov	x1, x22
	bl	_fm10k_unmap_and_free_tx_resource
	cmp	x22, x23
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x21, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x21, [x19, #8]
	b	LBB0_5
LBB0_8:
	str	x21, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
Lloh5:
	adrp	x20, _FM10K_MAX_DATA_PER_TXD@GOTPAGE
Lloh6:
	ldr	x20, [x20, _FM10K_MAX_DATA_PER_TXD@GOTPAGEOFF]
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #8
	add	x21, x21, #1
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	bl	_skb_frag_size
	mov	x25, x0
	sub	w28, w28, w0
	ldr	w0, [x19, #24]
Lloh7:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x1, x24
	mov	w2, #0
	mov	x3, x25
	bl	_skb_frag_dma_map
	mov	x26, x0
	ldr	x8, [x19, #16]
	mov	w9, #24
	madd	x27, x21, x9, x8
	add	x24, x24, #4
	ldr	w0, [x19, #24]
	mov	x1, x26
	bl	_dma_mapping_error
	cbnz	x0, LBB0_3
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
Lloh10:
	adrp	x8, _len@GOTPAGE
Lloh11:
	ldr	x8, [x8, _len@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x27
	mov	x2, x25
	bl	_dma_unmap_len_set
	mov	x0, x27
	mov	x1, x26
	mov	x2, x26
	bl	_dma_unmap_addr_set
	ldr	w8, [x20]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x22, x22, #8
	add	x21, x21, #1
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	w8, [x20]
	add	w26, w8, w26
	sub	w25, w25, w8
LBB0_16:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w25, w8
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w4, [x20]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x26
	mov	x5, x23
	bl	_fm10k_tx_desc_push
	cbz	x0, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x19
	mov	x1, #0
	bl	_FM10K_TX_DESC
	mov	x22, x0
	mov	x21, #0
	b	LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	w28, #0
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x26
	mov	x4, x25
	mov	x5, x23
	bl	_fm10k_tx_desc_push
	cbz	x0, LBB0_11
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	mov	x1, #0
	bl	_FM10K_TX_DESC
	mov	x22, x0
	mov	x21, #0
	b	LBB0_12
LBB0_22:
Lloh13:
	adrp	x8, _FM10K_TXD_FLAG_LAST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FM10K_TXD_FLAG_LAST@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w5, w8, w23
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x26
	mov	x4, x25
	bl	_fm10k_tx_desc_push
	cmp	x0, #0
	csinc	x21, xzr, x21, ne
	mov	x0, x19
	bl	_txring_txq
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w1, [x20, #16]
	bl	_netdev_tx_sent_queue
	ldr	x0, [x20, #8]
	bl	_skb_tx_timestamp
	bl	_wmb
	str	x22, [x20]
	str	x21, [x19]
Lloh16:
	adrp	x8, _DESC_NEEDED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DESC_NEEDED@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fm10k_maybe_stop_tx
	mov	x0, x19
	bl	_txring_txq
	bl	_netif_xmit_stopped
	cbnz	x0, LBB0_24
; %bb.23:
	bl	_netdev_xmit_more
	cbnz	w0, LBB0_9
LBB0_24:
	ldr	w1, [x19, #28]
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_len,4,2                        ; @len
	.comm	_FM10K_MAX_DATA_PER_TXD,4,2     ; @FM10K_MAX_DATA_PER_TXD
	.comm	_FM10K_TXD_FLAG_LAST,4,2        ; @FM10K_TXD_FLAG_LAST
	.comm	_DESC_NEEDED,4,2                ; @DESC_NEEDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX DMA map failed\n"

	.no_dead_strip	_fm10k_tx_map
.subsections_via_symbols
