	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_xdp_xmit
_qede_xdp_xmit:                         ## @qede_xdp_xmit
	.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	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r15
	movq	(%r15), %r13
	leaq	24(%r15), %rbx
	movq	%rbx, %rdi
	callq	_qed_chain_get_elem_left
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_qed_chain_produce
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_ETH_TX_1ST_BD_FLAGS_START_BD_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, 8(%r14)
	movq	_ETH_TX_DATA_1ST_BD_PKT_LEN_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	andq	%r15, %rdi
	movq	_ETH_TX_DATA_1ST_BD_PKT_LEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdi
	callq	_cpu_to_le16
	orl	%eax, 4(%r14)
	movl	$1, (%r14)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_BD_SET_UNMAP_ADDR_LEN
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	(%rbx), %r12
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	callq	_dma_sync_single_for_device
	movl	8(%rbx), %eax
	movq	16(%r14), %rcx
	shlq	$4, %r13
	movl	%eax, 8(%rcx,%r13)
	movq	(%rbx), %rax
	movq	%rax, (%rcx,%r13)
	movq	(%r14), %rax
	incq	%rax
	movslq	8(%r14), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_5
LBB0_1:
	incl	28(%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rdx, (%r14)
	movl	$1, (%rax)
	xorl	%eax, %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_TX_1ST_BD_FLAGS_START_BD_SHIFT,4,2 ## @ETH_TX_1ST_BD_FLAGS_START_BD_SHIFT
	.comm	_ETH_TX_DATA_1ST_BD_PKT_LEN_MASK,8,3 ## @ETH_TX_DATA_1ST_BD_PKT_LEN_MASK
	.comm	_ETH_TX_DATA_1ST_BD_PKT_LEN_SHIFT,8,3 ## @ETH_TX_DATA_1ST_BD_PKT_LEN_SHIFT
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_qede_xdp_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_xdp_xmit
_qede_xdp_xmit:                         ; @qede_xdp_xmit
	.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	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x25, [x1, #8]
	mov	x24, x25
	ldr	x26, [x24], #24
	mov	x0, x24
	bl	_qed_chain_get_elem_left
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_qed_chain_produce
	mov	x24, x0
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _ETH_TX_1ST_BD_FLAGS_START_BD_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_TX_1ST_BD_FLAGS_START_BD_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	str	w0, [x24, #8]
Lloh3:
	adrp	x8, _ETH_TX_DATA_1ST_BD_PKT_LEN_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_TX_DATA_1ST_BD_PKT_LEN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x21
Lloh6:
	adrp	x9, _ETH_TX_DATA_1ST_BD_PKT_LEN_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETH_TX_DATA_1ST_BD_PKT_LEN_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsl	x0, x8, x9
	bl	_cpu_to_le16
	ldr	w8, [x24, #4]
	orr	w8, w8, w0
	mov	w27, #1
	stp	w27, w8, [x24]
	ldr	x8, [x20]
	add	x1, x8, x22
	mov	x0, x24
	mov	x2, x21
	bl	_BD_SET_UNMAP_ADDR_LEN
	ldr	x0, [x23]
	ldr	x8, [x20]
	add	x1, x8, x22
Lloh9:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x2, x21
	bl	_dma_sync_single_for_device
	mov	w0, #0
	ldr	w8, [x20, #8]
	ldr	x9, [x25, #16]
	add	x9, x9, x26, lsl #4
	str	w8, [x9, #8]
	ldr	x8, [x20]
	str	x8, [x9]
	ldr	x8, [x25]
	add	x8, x8, #1
	ldrsw	x9, [x25, #8]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x25]
	str	w27, [x19]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x25, #28]
	add	w8, w8, #1
	str	w8, [x25, #28]
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_TX_1ST_BD_FLAGS_START_BD_SHIFT,4,2 ; @ETH_TX_1ST_BD_FLAGS_START_BD_SHIFT
	.comm	_ETH_TX_DATA_1ST_BD_PKT_LEN_MASK,8,3 ; @ETH_TX_DATA_1ST_BD_PKT_LEN_MASK
	.comm	_ETH_TX_DATA_1ST_BD_PKT_LEN_SHIFT,8,3 ; @ETH_TX_DATA_1ST_BD_PKT_LEN_SHIFT
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_qede_xdp_xmit
.subsections_via_symbols
