	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa2_eth_tx
_dpaa2_eth_tx:                          ## @dpaa2_eth_tx
	.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	%rdi, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movl	20(%rax), %edi
	callq	_this_cpu_ptr
	movq	%rax, %r12
	movl	16(%r13), %edi
	callq	_this_cpu_ptr
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_dpaa2_eth_needed_headroom
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_skb_headroom
	cmpl	%ebx, %eax
	jae	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_skb_realloc_headroom
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_24
## %bb.3:
	incl	12(%r15)
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_skb_set_owner_w
LBB0_5:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_6
LBB0_1:
	movq	%r14, %rbx
LBB0_6:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_unshare
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	incl	12(%r12)
	jmp	LBB0_25
LBB0_8:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_skb_is_nonlinear
	testq	%rax, %rax
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	je	LBB0_10
## %bb.9:
	callq	_build_sg_fd
	movq	%r15, %rcx
	movl	%eax, %r15d
	incl	8(%rcx)
	movl	(%r14), %eax
	addl	%eax, 4(%rcx)
	jmp	LBB0_11
LBB0_10:
	callq	_build_single_fd
	movl	%eax, %r15d
LBB0_11:
	movl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
LBB0_24:
	incl	12(%r12)
	movq	%r14, %rdi
	callq	_dev_kfree_skb
LBB0_25:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_trace_dpaa2_tx_fd
	movq	%r14, %rdi
	movq	%rbx, %r14
	callq	_skb_get_queue_mapping
	xorl	%r12d, %r12d
	cmpq	$0, (%rbx)
	je	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_netdev_txq_to_tc
	movq	%rax, %rbx
	notq	%rbx
	addq	(%r14), %rbx
	movq	%r13, %rdi
	callq	_dpaa2_eth_queue_count
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rcx
	movq	%rdx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_15
## %bb.16:
	movq	%rdx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rax
	jmp	LBB0_17
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_15:
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
LBB0_17:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %r14
	addq	8(%r13), %r14
	leaq	-48(%rbp), %rdi
	callq	_dpaa2_fd_get_len
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_netdev_get_tx_queue
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_netdev_tx_sent_queue
	movq	_DPAA2_ETH_ENQUEUE_RETRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_21
## %bb.18:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rcx
	callq	*(%r13)
	movl	%eax, %r15d
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	incl	%r12d
	movq	_DPAA2_ETH_ENQUEUE_RETRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_19
LBB0_21:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, (%rax)
	shrl	$31, %r15d
	movl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_free_tx_fd
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_netdev_tx_completed_queue
	jmp	LBB0_25
LBB0_23:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, (%rax)
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_DPAA2_ETH_ENQUEUE_RETRIES,4,2  ## @DPAA2_ETH_ENQUEUE_RETRIES
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_dpaa2_eth_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa2_eth_tx
_dpaa2_eth_tx:                          ; @dpaa2_eth_tx
	.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	x22, x1
	mov	x23, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x0, #20]
	bl	_this_cpu_ptr
	mov	x19, x0
	ldr	w0, [x20, #16]
	bl	_this_cpu_ptr
	mov	x21, x0
	mov	x0, x20
	mov	x1, x23
	bl	_dpaa2_eth_needed_headroom
	mov	x24, x0
	mov	x0, x23
	bl	_skb_headroom
	cmp	w0, w24
	b.hs	LBB0_5
; %bb.1:
	mov	x0, x23
	mov	x1, x24
	bl	_skb_realloc_headroom
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.2:
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
	ldr	x1, [x23, #8]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x24
	bl	_skb_set_owner_w
LBB0_4:
	mov	x0, x23
	bl	_dev_kfree_skb
	b	LBB0_6
LBB0_5:
	mov	x24, x23
LBB0_6:
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_skb_unshare
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	b	LBB0_13
LBB0_8:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x23
	bl	_skb_is_nonlinear
	add	x2, sp, #8
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x23
	bl	_build_sg_fd
	mov	x24, x0
	ldur	d0, [x21, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x23]
	add.2s	v0, v0, v1
	stur	d0, [x21, #4]
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x23
	bl	_build_single_fd
	mov	x24, x0
LBB0_11:
	mov	x0, x24
	bl	_unlikely
	cbz	x0, LBB0_14
LBB0_12:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	mov	x0, x23
	bl	_dev_kfree_skb
LBB0_13:
Lloh3:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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_14:
	add	x1, sp, #8
	mov	x0, x22
	bl	_trace_dpaa2_tx_fd
	mov	x0, x23
	bl	_skb_get_queue_mapping
	mov	x27, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x22
	mov	x1, x27
	bl	_netdev_txq_to_tc
	ldr	x8, [x22]
	mvn	x9, x0
	add	x26, x8, x9
	mov	x0, x20
	bl	_dpaa2_eth_queue_count
	udiv	x8, x27, x0
	msub	x27, x8, x0, x27
	b	LBB0_17
LBB0_16:
	mov	x26, #0
LBB0_17:
	ldr	x8, [x20, #8]
	add	x25, x8, x27, lsl #2
	add	x0, sp, #8
	bl	_dpaa2_fd_get_len
	mov	x23, x0
	mov	x0, x22
	mov	x1, x27
	bl	_netdev_get_tx_queue
	mov	x22, x0
	mov	x1, x23
	bl	_netdev_tx_sent_queue
Lloh6:
	adrp	x28, _DPAA2_ETH_ENQUEUE_RETRIES@GOTPAGE
Lloh7:
	ldr	x28, [x28, _DPAA2_ETH_ENQUEUE_RETRIES@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	str	x22, [sp]                       ; 8-byte Folded Spill
	mov	w27, #0
	b.lt	LBB0_21
; %bb.18:
Lloh8:
	adrp	x22, _EBUSY@GOTPAGE
Lloh9:
	ldr	x22, [x22, _EBUSY@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x25
	mov	x3, x26
	blr	x8
	mov	x24, x0
	ldr	w8, [x22]
	cmn	w0, w8
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	w27, w27, #1
	ldr	w8, [x28]
	cmp	w27, w8
	b.lt	LBB0_19
LBB0_21:
	ldr	w8, [x21]
	add	w8, w8, w27
	str	w8, [x21]
	lsr	w0, w24, #31
	bl	_unlikely
	cbz	x0, LBB0_23
; %bb.22:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x25
	mov	w3, #0
	bl	_free_tx_fd
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	w1, #1
	mov	x2, x23
	bl	_netdev_tx_completed_queue
	b	LBB0_13
LBB0_23:
	ldr	d0, [x19]
	movi.2s	v1, #1
	mov.s	v1[0], w23
	add.2s	v0, v0, v1
	str	d0, [x19]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_DPAA2_ETH_ENQUEUE_RETRIES,4,2  ; @DPAA2_ETH_ENQUEUE_RETRIES
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_dpaa2_eth_tx
.subsections_via_symbols
