	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_clean_xdp_tx_irq          ## -- Begin function i40e_clean_xdp_tx_irq
	.p2align	4, 0x90
_i40e_clean_xdp_tx_irq:                 ## @i40e_clean_xdp_tx_irq
	.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, %rbx
	movq	%rdi, %r13
	movl	(%rdi), %r14d
	movq	8(%rsi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_i40e_get_head
	movq	%rbx, %rcx
	movl	%eax, %ebx
	movl	(%rcx), %r12d
	cmpl	%r12d, %eax
	jae	LBB0_2
## %bb.1:
	movl	4(%rcx), %eax
	addl	%eax, %ebx
LBB0_2:
	movl	$1, %r15d
	subl	%r12d, %ebx
	je	LBB0_16
## %bb.3:
	xorl	%r15d, %r15d
	cmpl	%r14d, %ebx
	setbe	-41(%rbp)                       ## 1-byte Folded Spill
	cmovael	%r14d, %ebx
	testl	%ebx, %ebx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, -72(%rbp)                ## 4-byte Spill
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r15d
	xorl	%edx, %edx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	-52(%rbp)                       ## 4-byte Folded Spill
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%rbx,%r13), %rax
	addq	$8, %rax
	movq	$0, (%rax)
	addl	(%r14), %edx
	incl	%r12d
	movl	4(%rcx), %eax
	cmpl	%eax, %r12d
	movl	$0, %esi
	cmovael	%esi, %r12d
	decl	%r15d
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rcx), %rbx
	movl	%r12d, %r13d
	shlq	$4, %r13
	leaq	(%rbx,%r13), %r14
	cmpq	$0, 8(%rbx,%r13)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_i40e_clean_xdp_tx_buffer
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_10:
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %r12d
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	xorl	%r15d, %r15d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_4:
	movl	4(%rcx), %eax
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_11:
	addl	%ebx, %r12d
	movl	%r12d, (%rcx)
	xorl	%edi, %edi
	cmpl	%eax, %r12d
	setae	%dil
	callq	_unlikely
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	4(%rcx), %eax
	subl	%eax, (%rcx)
LBB0_13:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_15
## %bb.14:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_xsk_umem_complete_tx
LBB0_15:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r15b
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_i40e_arm_wb
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_i40e_update_tx_stats
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_16:
	movq	%rcx, %rbx
	movq	8(%rcx), %rdi
	callq	_xsk_umem_uses_need_wakeup
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	8(%rbx), %rdi
	callq	_xsk_set_tx_need_wakeup
LBB0_18:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_i40e_xmit_zc
	testl	%r15d, %r15d
	setne	%cl
	testl	%eax, %eax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_clean_xdp_tx_irq          ; -- Begin function i40e_clean_xdp_tx_irq
	.p2align	2
_i40e_clean_xdp_tx_irq:                 ; @i40e_clean_xdp_tx_irq
	.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, x1
	mov	x21, x0
	ldr	w20, [x0]
	ldr	x26, [x1, #8]
	mov	x0, x1
	bl	_i40e_get_head
	ldr	w28, [x19]
	cmp	w0, w28
	b.lo	LBB0_3
; %bb.1:
	subs	w8, w0, w28
	b.ne	LBB0_4
LBB0_2:
	mov	w23, #1
	b	LBB0_17
LBB0_3:
	ldr	w8, [x19, #4]
	add	w0, w8, w0
	subs	w8, w0, w28
	b.eq	LBB0_2
LBB0_4:
	cmp	w8, w20
	csel	w22, w8, w20, lo
	cset	w23, ls
	cbz	w22, LBB0_11
; %bb.5:
	str	x26, [sp]                       ; 8-byte Folded Spill
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	mov	w24, #0
	mov	w25, #0
	mov	x23, x22
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w25, w25, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [x26]
	ldr	w8, [x27]
	add	w24, w24, w8
	add	w9, w28, #1
	ldr	w8, [x19, #4]
	cmp	w9, w8
	csinc	w28, wzr, w28, hs
	subs	w23, w23, #1
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x27, x8, w28, uxtw #4
	mov	x26, x27
	ldr	x8, [x26, #8]!
	cbz	x8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x27
	bl	_i40e_clean_xdp_tx_buffer
	b	LBB0_7
LBB0_10:
	ldr	w28, [x19]
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	b	LBB0_12
LBB0_11:
	mov	w25, #0
	mov	w24, #0
	ldr	w8, [x19, #4]
LBB0_12:
	add	w9, w28, w22
	cmp	w9, w8
	str	w9, [x19]
	cset	w0, hs
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.13:
	ldp	w9, w8, [x19]
	sub	w8, w9, w8
	str	w8, [x19]
LBB0_14:
	cbz	w25, LBB0_16
; %bb.15:
	mov	x0, x26
	mov	x1, x25
	bl	_xsk_umem_complete_tx
LBB0_16:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_i40e_arm_wb
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	bl	_i40e_update_tx_stats
LBB0_17:
	ldr	x0, [x19, #8]
	bl	_xsk_umem_uses_need_wakeup
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x0, [x19, #8]
	bl	_xsk_set_tx_need_wakeup
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	bl	_i40e_xmit_zc
	cmp	w23, #0
	ccmp	w0, #0, #4, ne
	cset	w0, ne
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
