	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_map_tx_buffs
_enetc_map_tx_buffs:                    ## @enetc_map_tx_buffs
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_skb_headlen
	movl	%eax, %r14d
	movl	(%r12), %r13d
	movl	%r13d, -44(%rbp)
	movq	16(%r12), %rax
	movq	%rax, 16(%rsp)
	movups	(%r12), %xmm0
	movups	%xmm0, (%rsp)
	movl	%r13d, %edi
	callq	_ENETC_TXBD
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_prefetchw
	movl	16(%r12), %edi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, -120(%rbp)               ## 4-byte Spill
	movl	%r14d, %edx
	callq	_dma_map_single
	movq	%rax, %r15
	movl	16(%r12), %edi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_26:
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	incl	%r14d
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	decl	%r13d
	movl	%r13d, -44(%rbp)
	decl	%r14d
	je	LBB0_30
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %rbx
	movq	%rbx, %rsi
	shlq	$5, %rsi
	addq	8(%r12), %rsi
	movq	%r12, %rdi
	callq	_enetc_free_tx_skb
	testl	%ebx, %ebx
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	4(%r12), %r13d
	jmp	LBB0_29
LBB0_30:
	xorl	%r14d, %r14d
	jmp	LBB0_31
LBB0_1:
	movslq	%r13d, %rbx
	movq	%r15, %rdi
	callq	_cpu_to_le64
	movl	-120(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	$0, -88(%rbp)
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	8(%r12), %r12
	shlq	$5, %rbx
	movq	%r15, 24(%r12,%rbx)
	movl	%r14d, (%r12,%rbx)
	movl	$0, 4(%r12,%rbx)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_skb_vlan_tag_present
	movl	%eax, %r13d
	movq	_ENETC_F_TX_TSTAMP@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_skb_shinfo
	movq	_SKBTX_HW_TSTAMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	setne	%al
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movzbl	%al, %eax
	movl	%eax, 8(%r12,%rbx)
	movl	%eax, 12(%r12,%rbx)
	movq	_ENETC_TXBD_FLAGS_EX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testb	%al, %al
	movl	$0, %r14d
	cmovnel	%ecx, %r14d
	addq	%r12, %rbx
	testl	%r13d, %r13d
	cmovnel	%ecx, %r14d
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_enetc_tx_csum
	movq	_ENETC_TXBD_FLAGS_CSUM@GOTPCREL(%rip), %rcx
	movq	_ENETC_TXBD_FLAGS_L4CS@GOTPCREL(%rip), %rdx
	movq	%r15, %rsi
	movl	(%rdx), %r15d
	orl	(%rcx), %r15d
	testq	%rax, %rax
	movl	$0, %eax
	cmovel	%eax, %r15d
	orl	%r14d, %r15d
	movl	(%rsi), %edi
	callq	_cpu_to_le16
	movq	%rax, -88(%rbp)
	movl	%r15d, -88(%rbp)
	movq	_ENETC_TXBD_FLAGS_EX@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	movq	-72(%rbp), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	movups	-88(%rbp), %xmm0
	movups	%xmm0, (%r14)
	leaq	-88(%rbp), %rdi
	callq	_enetc_clear_tx_bd
	movl	-44(%rbp), %eax
	incl	%eax
	movl	%eax, -44(%rbp)
	xorl	%edi, %edi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	cmpl	4(%rbx), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	$0, -44(%rbp)
	movq	8(%rbx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	16(%rbx), %rax
	movq	%rax, 16(%rsp)
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rsp)
	xorl	%edi, %edi
	callq	_ENETC_TXBD
	jmp	LBB0_9
LBB0_5:
	movl	$1, %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	jmp	LBB0_15
LBB0_7:
	addq	$32, -112(%rbp)                 ## 8-byte Folded Spill
	addq	$24, %r14
	movq	%r14, %rax
LBB0_9:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_prefetchw
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.11:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_skb_vlan_tag_get
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movq	$0, -80(%rbp)
	movq	_ENETC_TXBD_E_FLAGS_VLAN_INS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_12
LBB0_10:
	xorl	%r15d, %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_12:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movq	_SKBTX_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_skb_shinfo
	orl	%r14d, (%rax)
	movq	_ENETC_TXBD_E_FLAGS_TWO_STEP_PTP@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_14:
	movl	%r15d, -88(%rbp)
	xorl	%r15d, %r15d
	movl	$2, %r14d
LBB0_15:
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	movq	%r12, %rdi
	callq	_skb_shinfo
	cmpl	$0, 4(%rax)
	je	LBB0_16
## %bb.17:
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	$0, -44(%rbp)
	movq	8(%r12), %rbx
	movq	16(%r12), %rax
	movq	%rax, 16(%rsp)
	movups	(%r12), %xmm0
	movups	%xmm0, (%rsp)
	xorl	%edi, %edi
	callq	_ENETC_TXBD
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	movl	-92(%rbp), %r12d                ## 4-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_prefetchw
	movq	%r15, %rdi
	callq	_cpu_to_le64
	movq	%rax, -88(%rbp)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, -88(%rbp)
	movq	%r15, 24(%rbx)
	movl	%r12d, (%rbx)
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	$1, 4(%rbx)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	incl	%r15d
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	addq	$4, %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_skb_shinfo
	cmpl	4(%rax), %r15d
	jae	LBB0_23
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movl	16(%r12), %edi
	movl	(%r13), %r8d
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	callq	_skb_frag_dma_map
	movq	%rax, %r15
	movl	16(%r12), %edi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testl	%eax, %eax
	jne	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-72(%rbp), %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, 16(%r13)
	movups	-88(%rbp), %xmm0
	movups	%xmm0, (%r13)
	leaq	-88(%rbp), %rdi
	callq	_enetc_clear_tx_bd
	movl	-44(%rbp), %eax
	incl	%eax
	movl	%eax, -44(%rbp)
	xorl	%edi, %edi
	cmpl	4(%r12), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	addq	$32, %rbx
	addq	$24, %r13
	movq	%r13, %rax
	jmp	LBB0_22
LBB0_16:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_24
LBB0_23:
	addl	%r15d, %r14d
	xorl	%r15d, %r15d
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_24:
	movq	_ENETC_TXBD_FLAGS_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, -88(%rbp)
	movq	-72(%rbp), %rax
	movq	%rax, 16(%rcx)
	movups	-88(%rbp), %xmm0
	movups	%xmm0, (%rcx)
	movq	8(%rbx), %rax
	movslq	-44(%rbp), %rcx
	shlq	$5, %rcx
	movq	%r12, 16(%rax,%rcx)
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_enetc_bdr_idx_inc
	movl	-44(%rbp), %esi
	movl	%esi, (%rbx)
	movl	20(%rbx), %edi
	callq	_enetc_wr_reg
LBB0_31:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	-44(%rbp), %r13d
	addl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ENETC_F_TX_TSTAMP,4,2          ## @ENETC_F_TX_TSTAMP
	.comm	_SKBTX_HW_TSTAMP,4,2            ## @SKBTX_HW_TSTAMP
	.comm	_ENETC_TXBD_FLAGS_EX,4,2        ## @ENETC_TXBD_FLAGS_EX
	.comm	_ENETC_TXBD_FLAGS_CSUM,4,2      ## @ENETC_TXBD_FLAGS_CSUM
	.comm	_ENETC_TXBD_FLAGS_L4CS,4,2      ## @ENETC_TXBD_FLAGS_L4CS
	.comm	_ENETC_TXBD_E_FLAGS_VLAN_INS,4,2 ## @ENETC_TXBD_E_FLAGS_VLAN_INS
	.comm	_SKBTX_IN_PROGRESS,4,2          ## @SKBTX_IN_PROGRESS
	.comm	_ENETC_TXBD_E_FLAGS_TWO_STEP_PTP,4,2 ## @ENETC_TXBD_E_FLAGS_TWO_STEP_PTP
	.comm	_ENETC_TXBD_FLAGS_F,4,2         ## @ENETC_TXBD_FLAGS_F
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA map error"

	.no_dead_strip	_enetc_map_tx_buffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_map_tx_buffs
_enetc_map_tx_buffs:                    ; @enetc_map_tx_buffs
	.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	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_skb_headlen
	mov	x22, x0
	ldr	w24, [x19]
	str	w24, [sp, #44]
	ldr	q0, [x19]
	str	q0, [sp, #48]
	ldr	x8, [x19, #16]
	str	x8, [sp, #64]
	add	x0, sp, #48
	mov	x1, x24
	bl	_ENETC_TXBD
	mov	x21, x0
	bl	_prefetchw
	ldr	w0, [x19, #16]
	ldr	w1, [x20, #4]
Lloh0:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x2, x22
	bl	_dma_map_single
	mov	x25, x0
	ldr	w0, [x19, #16]
	mov	x1, x25
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.1:
	mov	w20, #0
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
LBB0_2:
	ldr	w0, [x19, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	add	w20, w20, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w24, w24, #1
	str	w24, [sp, #44]
	subs	w20, w20, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	sxtw	x9, w24
	add	x1, x8, x9, lsl #5
	mov	x0, x19
	bl	_enetc_free_tx_skb
	cbnz	w24, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w24, [x19, #4]
	b	LBB0_3
LBB0_6:
	mov	w22, #0
	b	LBB0_29
LBB0_7:
	sxtw	x24, w24
	mov	x0, x25
	bl	_cpu_to_le64
	mov	x0, x22
	bl	_cpu_to_le16
	str	xzr, [sp, #48]
	ldr	x8, [x19, #8]
	add	x27, x8, x24, lsl #5
	str	x25, [x27, #24]
	stp	w22, wzr, [x27]
	mov	x0, x20
	bl	_skb_vlan_tag_present
	mov	x22, x0
Lloh4:
	adrp	x8, _ENETC_F_TX_TSTAMP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENETC_F_TX_TSTAMP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
Lloh7:
	adrp	x9, _SKBTX_HW_TSTAMP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SKBTX_HW_TSTAMP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w23, ne
	b	LBB0_10
LBB0_9:
	mov	w23, #0
LBB0_10:
	stp	w23, w23, [x27, #8]
	cmp	w22, #0
	cset	w8, ne
	orr	w8, w8, w23
Lloh10:
	adrp	x25, _ENETC_TXBD_FLAGS_EX@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ENETC_TXBD_FLAGS_EX@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w8, #0
	csel	w24, w9, wzr, ne
	add	x1, sp, #48
	mov	x0, x20
	bl	_enetc_tx_csum
Lloh12:
	adrp	x8, _ENETC_TXBD_FLAGS_CSUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENETC_TXBD_FLAGS_CSUM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ENETC_TXBD_FLAGS_L4CS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ENETC_TXBD_FLAGS_L4CS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w24, w8, w24
	ldr	w0, [x20]
	bl	_cpu_to_le16
	str	x0, [sp, #48]
	str	w24, [sp, #48]
	ldr	w8, [x25]
	tst	w8, w24
	b.eq	LBB0_13
; %bb.11:
	ldr	q0, [sp, #48]
	ldr	x8, [sp, #64]
	str	x8, [x21, #16]
	str	q0, [x21]
	add	x0, sp, #48
	bl	_enetc_clear_tx_bd
	ldr	w8, [sp, #44]
	add	w8, w8, #1
	str	w8, [sp, #44]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.12:
	str	wzr, [sp, #44]
	ldr	q0, [x19]
	str	q0, [sp, #16]
	ldp	x27, x8, [x19, #8]
	str	x8, [sp, #32]
	add	x0, sp, #16
	mov	w1, #0
	bl	_ENETC_TXBD
	mov	x21, x0
	b	LBB0_15
LBB0_13:
	mov	w22, #1
	b	LBB0_20
LBB0_14:
	add	x27, x27, #32
	add	x21, x21, #24
LBB0_15:
	mov	x0, x21
	bl	_prefetchw
	cbz	w22, LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_skb_vlan_tag_get
	bl	_cpu_to_le16
	stp	xzr, x0, [sp, #56]
Lloh18:
	adrp	x8, _ENETC_TXBD_E_FLAGS_VLAN_INS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENETC_TXBD_E_FLAGS_VLAN_INS@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
LBB0_17:
	cbz	w23, LBB0_19
; %bb.18:
Lloh21:
	adrp	x8, _SKBTX_IN_PROGRESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SKBTX_IN_PROGRESS@GOTPAGEOFF]
Lloh23:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	orr	w8, w8, w23
	str	w8, [x0]
Lloh24:
	adrp	x8, _ENETC_TXBD_E_FLAGS_TWO_STEP_PTP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENETC_TXBD_E_FLAGS_TWO_STEP_PTP@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_19:
	mov	w24, #0
	str	w22, [sp, #48]
	mov	w22, #2
LBB0_20:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x23, [x0, #8]
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_28
; %bb.21:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	mov	w28, #0
	mov	w22, #1
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	str	wzr, [sp, #44]
	ldr	q0, [x19]
	str	q0, [sp, #16]
	ldp	x27, x8, [x19, #8]
	str	x8, [sp, #32]
	add	x0, sp, #16
	mov	w1, #0
	bl	_ENETC_TXBD
	mov	x21, x0
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x21
	bl	_prefetchw
	mov	x0, x25
	bl	_cpu_to_le64
	str	x0, [sp, #48]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #48]
	str	x25, [x27, #24]
	stp	w24, w22, [x27]
	add	w28, w28, #1
	add	x23, x23, #4
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0, #4]
	cmp	w28, w8
	b.hs	LBB0_27
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_skb_frag_size
	mov	x24, x0
	ldr	w0, [x19, #16]
	ldr	w4, [x26]
	mov	x1, x23
	mov	w2, #0
	mov	x3, x24
	bl	_skb_frag_dma_map
	mov	x25, x0
	ldr	w0, [x19, #16]
	mov	x1, x25
	bl	_dma_mapping_error
	cbnz	w0, LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	q0, [sp, #48]
	ldr	x8, [sp, #64]
	str	x8, [x21, #16]
	str	q0, [x21]
	add	x0, sp, #48
	bl	_enetc_clear_tx_bd
	ldr	w8, [sp, #44]
	add	w8, w8, #1
	str	w8, [sp, #44]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x27, x27, #32
	add	x21, x21, #24
	b	LBB0_23
LBB0_27:
	mov	w24, #0
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	add	w22, w22, w28
LBB0_28:
Lloh27:
	adrp	x8, _ENETC_TXBD_FLAGS_F@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENETC_TXBD_FLAGS_F@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w8, w8, w24
	str	w8, [sp, #48]
	ldr	q0, [sp, #48]
	ldr	x8, [sp, #64]
	str	x8, [x21, #16]
	str	q0, [x21]
	ldr	x8, [x19, #8]
	ldrsw	x9, [sp, #44]
	add	x8, x8, x9, lsl #5
	str	x20, [x8, #16]
	add	x1, sp, #44
	mov	x0, x19
	bl	_enetc_bdr_idx_inc
	ldr	w1, [sp, #44]
	str	w1, [x19]
	ldr	w0, [x19, #20]
	bl	_enetc_wr_reg
LBB0_29:
	mov	x0, x22
	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_30:
	ldr	w24, [sp, #44]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w20, w8, w28
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ENETC_F_TX_TSTAMP,4,2          ; @ENETC_F_TX_TSTAMP
	.comm	_SKBTX_HW_TSTAMP,4,2            ; @SKBTX_HW_TSTAMP
	.comm	_ENETC_TXBD_FLAGS_EX,4,2        ; @ENETC_TXBD_FLAGS_EX
	.comm	_ENETC_TXBD_FLAGS_CSUM,4,2      ; @ENETC_TXBD_FLAGS_CSUM
	.comm	_ENETC_TXBD_FLAGS_L4CS,4,2      ; @ENETC_TXBD_FLAGS_L4CS
	.comm	_ENETC_TXBD_E_FLAGS_VLAN_INS,4,2 ; @ENETC_TXBD_E_FLAGS_VLAN_INS
	.comm	_SKBTX_IN_PROGRESS,4,2          ; @SKBTX_IN_PROGRESS
	.comm	_ENETC_TXBD_E_FLAGS_TWO_STEP_PTP,4,2 ; @ENETC_TXBD_E_FLAGS_TWO_STEP_PTP
	.comm	_ENETC_TXBD_FLAGS_F,4,2         ; @ENETC_TXBD_FLAGS_F
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA map error"

	.no_dead_strip	_enetc_map_tx_buffs
.subsections_via_symbols
