	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa2_eth_xdp_xmit_frame
_dpaa2_eth_xdp_xmit_frame:              ## @dpaa2_eth_xdp_xmit_frame
	.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	$40, %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, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %r12
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_dpaa2_eth_needed_headroom
	cmpl	%eax, (%r14)
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_2:
	movl	%eax, %r13d
	movl	20(%r15), %edi
	callq	_this_cpu_ptr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edi
	callq	_this_cpu_ptr
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	movq	%r12, %rbx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r15
	movl	%r13d, %eax
	subq	%rax, %r15
	movq	_DPAA2_ETH_TX_BUF_ALIGN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	%r15, %rdi
	subq	%rsi, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_PTR_ALIGN
	movq	8(%r14), %rcx
	movl	(%r14), %edx
	movq	%rcx, %rsi
	subq	%rdx, %rsi
	cmpq	%rsi, %rax
	cmovaeq	%rax, %r15
	movq	_DPAA2_ETH_SWA_XDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movslq	16(%r14), %rdx
	addq	%rcx, %rdx
	subq	%r15, %rdx
	movq	%rdx, (%r15)
	movq	%r14, 8(%r15)
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_dma_map_single
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	12(%rax)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %ebx
	jmp	LBB0_15
LBB0_4:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_dpaa2_fd_set_addr
	movl	8(%r14), %esi
	subl	%r15d, %esi
	movq	%rbx, %rdi
	callq	_dpaa2_fd_set_offset
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_dpaa2_fd_set_len
	movq	_dpaa2_fd_single@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dpaa2_fd_set_format
	movq	_FD_CTRL_PTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dpaa2_fd_set_ctrl
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %r14
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dpaa2_eth_queue_count
	movq	%rax, %rcx
	movq	_DPAA2_ETH_ENQUEUE_RETRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.6:
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_9
LBB0_5:
                                        ## implicit-def: $ebx
	jmp	LBB0_12
LBB0_7:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_9:
	leaq	(%r14,%rdx,4), %r14
	xorl	%r12d, %r12d
	movq	_EBUSY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	movl	%eax, %ebx
	addl	(%r13), %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%r12d
	movq	_DPAA2_ETH_ENQUEUE_RETRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_10
LBB0_12:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, (%rax)
	movl	%ebx, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	jmp	LBB0_15
LBB0_14:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incl	4(%rbx)
	leaq	-48(%rbp), %rdi
	callq	_dpaa2_fd_get_len
	addl	%eax, (%rbx)
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DPAA2_ETH_TX_BUF_ALIGN,4,2     ## @DPAA2_ETH_TX_BUF_ALIGN
	.comm	_DPAA2_ETH_SWA_XDP,4,2          ## @DPAA2_ETH_SWA_XDP
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dpaa2_fd_single,4,2            ## @dpaa2_fd_single
	.comm	_FD_CTRL_PTA,4,2                ## @FD_CTRL_PTA
	.comm	_DPAA2_ETH_ENQUEUE_RETRIES,4,2  ## @DPAA2_ETH_ENQUEUE_RETRIES
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_dpaa2_eth_xdp_xmit_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa2_eth_xdp_xmit_frame
_dpaa2_eth_xdp_xmit_frame:              ; @dpaa2_eth_xdp_xmit_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x23, [x19]
	mov	x1, #0
	bl	_dpaa2_eth_needed_headroom
	ldr	w8, [x22]
	cmp	w8, w0
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x24, x0
	ldr	w0, [x20, #20]
	bl	_this_cpu_ptr
	mov	x19, x0
	ldr	w0, [x20, #16]
	bl	_this_cpu_ptr
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x22, #8]
	sub	x24, x8, w24, uxtw
Lloh2:
	adrp	x8, _DPAA2_ETH_TX_BUF_ALIGN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPAA2_ETH_TX_BUF_ALIGN@GOTPAGEOFF]
Lloh4:
	ldrsw	x1, [x8]
	sub	x0, x24, x1
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_PTR_ALIGN
	ldr	x8, [x22, #8]
	ldr	w9, [x22]
	sub	x9, x8, x9
	cmp	x0, x9
	csel	x24, x24, x0, lo
Lloh5:
	adrp	x9, _DPAA2_ETH_SWA_XDP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DPAA2_ETH_SWA_XDP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x24, #16]
	ldrsw	x9, [x22, #16]
	add	x8, x8, x9
	sub	x2, x8, x24
	stp	x2, x22, [x24]
Lloh8:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_dma_map_single
	mov	x25, x0
	mov	x0, x23
	mov	x1, x25
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
LBB0_6:
	add	x0, sp, #8
	mov	x1, x25
	bl	_dpaa2_fd_set_addr
	ldr	w8, [x22, #8]
	sub	w1, w8, w24
	add	x0, sp, #8
	bl	_dpaa2_fd_set_offset
	ldr	w1, [x22, #16]
	add	x0, sp, #8
	bl	_dpaa2_fd_set_len
Lloh13:
	adrp	x8, _dpaa2_fd_single@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dpaa2_fd_single@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_dpaa2_fd_set_format
Lloh16:
	adrp	x8, _FD_CTRL_PTA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FD_CTRL_PTA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_dpaa2_fd_set_ctrl
	ldr	x23, [x20, #8]
	bl	_smp_processor_id
	mov	x22, x0
	mov	x0, x20
	bl	_dpaa2_eth_queue_count
Lloh19:
	adrp	x25, _DPAA2_ETH_ENQUEUE_RETRIES@GOTPAGE
Lloh20:
	ldr	x25, [x25, _DPAA2_ETH_ENQUEUE_RETRIES@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	w24, #0
	udiv	x8, x22, x0
	msub	x8, x8, x0, x22
	add	x23, x23, x8, lsl #2
Lloh21:
	adrp	x26, _EBUSY@GOTPAGE
Lloh22:
	ldr	x26, [x26, _EBUSY@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x23
	mov	w3, #0
	blr	x8
	mov	x22, x0
	ldr	w8, [x26]
	cmn	w0, w8
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, #1
	ldr	w8, [x25]
	cmp	w24, w8
	b.lt	LBB0_8
	b	LBB0_11
LBB0_10:
	mov	w24, #0
                                        ; implicit-def: $w22
LBB0_11:
	ldr	w8, [x21]
	add	w8, w8, w24
	str	w8, [x21]
	lsr	w0, w22, #31
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_13:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	add	x0, sp, #8
	bl	_dpaa2_fd_get_len
	mov	w22, #0
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DPAA2_ETH_TX_BUF_ALIGN,4,2     ; @DPAA2_ETH_TX_BUF_ALIGN
	.comm	_DPAA2_ETH_SWA_XDP,4,2          ; @DPAA2_ETH_SWA_XDP
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dpaa2_fd_single,4,2            ; @dpaa2_fd_single
	.comm	_FD_CTRL_PTA,4,2                ; @FD_CTRL_PTA
	.comm	_DPAA2_ETH_ENQUEUE_RETRIES,4,2  ; @DPAA2_ETH_ENQUEUE_RETRIES
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_dpaa2_eth_xdp_xmit_frame
.subsections_via_symbols
