	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ena_clean_tx_irq
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ena_clean_tx_irq:                      ## @ena_clean_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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movl	40(%rdi), %edi
	movl	36(%r15), %esi
	callq	_netdev_get_tx_queue
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	44(%r15), %edi
	leaq	-72(%rbp), %rsi
	callq	_ena_com_tx_comp_req_id_get
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_validate_tx_req_id
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	56(%r15), %r13
	movq	-72(%rbp), %rax
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	leaq	(%rax,%rax,2), %r12
	leaq	(,%r12,8), %rax
	addq	%r13, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	16(%r13,%r12,8), %r14
	leaq	8(%r14), %rdi
	callq	_prefetch
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13,%r12,8)
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ena_unmap_tx_skb
	movq	24(%r15), %rdi
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r15), %edx
	movl	36(%r15), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_netif_dbg
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	incl	%ebx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	(%r13,%r12,8), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movq	-72(%rbp), %rax
	movq	8(%r15), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdi,8)
	movl	48(%r15), %esi
	callq	_ENA_TX_RING_IDX_NEXT
	movq	%rax, %r14
	cmpl	%ebx, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.6:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_7:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
LBB0_8:
	movq	%r14, (%r15)
	movl	32(%r15), %edi
	movl	%r12d, %esi
	callq	_ena_com_comp_ack
	movl	44(%r15), %edi
	callq	_ena_com_update_dev_comp_head
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_netdev_tx_completed_queue
	movq	24(%r15), %rdi
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r15), %edx
	movl	36(%r15), %r8d
	leaq	L_.str.1(%rip), %rcx
	movl	%ebx, %r13d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_netif_dbg
	xorl	%eax, %eax
	callq	_smp_mb
	movl	32(%r15), %edi
	movq	_ENA_TX_WAKEUP_THRESH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_ena_com_sq_have_enough_space
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	setne	%al
	testl	%ebx, %ebx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	___netif_tx_lock
	movl	32(%r15), %edi
	movl	(%r14), %esi
	callq	_ena_com_sq_have_enough_space
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.11:
	movq	_ENA_FLAG_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_tx_wake_queue
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	incl	20(%r15)
	movq	%rbx, %rdi
	callq	_u64_stats_update_end
LBB0_13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	___netif_tx_unlock
LBB0_14:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tx_done,4,2                    ## @tx_done
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx_poll: q %d skb %p completed\n"

L_.str.1:                               ## @.str.1
	.asciz	"tx_poll: q %d done. total pkts: %d\n"

	.comm	_ENA_TX_WAKEUP_THRESH,4,2       ## @ENA_TX_WAKEUP_THRESH
	.comm	_ENA_FLAG_DEV_UP,4,2            ## @ENA_FLAG_DEV_UP
	.no_dead_strip	_ena_clean_tx_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_clean_tx_irq
_ena_clean_tx_irq:                      ; @ena_clean_tx_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x25, x1
	mov	x19, x0
	ldr	x22, [x0]
	ldr	w0, [x0, #40]
	ldr	w1, [x19, #36]
	bl	_netdev_get_tx_queue
	mov	x26, x0
	cmp	w25, #1
	b.lt	LBB0_7
; %bb.1:
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	mov	w23, #0
	mov	w21, #0
	mov	w24, #0
	mov	w20, #24
Lloh0:
	adrp	x26, l_.str@PAGE
Lloh1:
	add	x26, x26, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #44]
	add	x1, sp, #24
	bl	_ena_com_tx_comp_req_id_get
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_validate_tx_req_id
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #56]
	ldr	x9, [sp, #24]
	madd	x27, x9, x20, x8
	ldr	x28, [x27, #16]
	add	x0, x28, #8
	bl	_prefetch
	stp	xzr, xzr, [x27, #8]
	mov	x0, x19
	mov	x1, x27
	bl	_ena_unmap_tx_skb
	ldr	x0, [x19, #24]
Lloh2:
	adrp	x8, _tx_done@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldp	w4, w2, [x19, #36]
	str	x28, [sp]
	mov	x3, x26
	bl	_netif_dbg
	ldr	w8, [x28]
	add	w23, w23, w8
	mov	x0, x28
	bl	_dev_kfree_skb
	add	w21, w21, #1
	ldr	w8, [x27]
	add	w24, w24, w8
	ldr	x8, [sp, #24]
	ldr	x9, [x19, #8]
	str	x8, [x9, x22, lsl #3]
	ldr	w1, [x19, #48]
	mov	x0, x22
	bl	_ENA_TX_RING_IDX_NEXT
	mov	x22, x0
	cmp	w25, w21
	b.ne	LBB0_2
; %bb.5:
	mov	x21, x25
LBB0_6:
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_8
LBB0_7:
	mov	w24, #0
	mov	w21, #0
	mov	w23, #0
LBB0_8:
	str	x22, [x19]
	ldr	w0, [x19, #32]
	mov	x1, x24
	bl	_ena_com_comp_ack
	ldr	w0, [x19, #44]
	bl	_ena_com_update_dev_comp_head
	mov	x0, x26
	mov	x1, x21
	mov	x2, x23
	bl	_netdev_tx_completed_queue
	ldr	x0, [x19, #24]
Lloh5:
	adrp	x8, _tx_done@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldp	w4, w2, [x19, #36]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	str	x21, [sp]
	bl	_netif_dbg
	bl	_smp_mb
	ldr	w0, [x19, #32]
Lloh10:
	adrp	x20, _ENA_TX_WAKEUP_THRESH@GOTPAGE
Lloh11:
	ldr	x20, [x20, _ENA_TX_WAKEUP_THRESH@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ena_com_sq_have_enough_space
	mov	x22, x0
	mov	x0, x26
	bl	_netif_tx_queue_stopped
	cmp	x0, #0
	ccmp	w22, #0, #4, ne
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.9:
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x26
	bl	___netif_tx_lock
	ldr	w0, [x19, #32]
	ldr	w1, [x20]
	bl	_ena_com_sq_have_enough_space
	mov	x22, x0
	mov	x0, x26
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_13
; %bb.10:
	cbz	w22, LBB0_13
; %bb.11:
Lloh12:
	adrp	x8, _ENA_FLAG_DEV_UP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENA_FLAG_DEV_UP@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x1, [x19, #24]
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x26
	bl	_netif_tx_wake_queue
	add	x22, x19, #16
	mov	x0, x22
	bl	_u64_stats_update_begin
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	mov	x0, x22
	bl	_u64_stats_update_end
LBB0_13:
	mov	x0, x26
	bl	___netif_tx_unlock
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_tx_done,4,2                    ; @tx_done
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx_poll: q %d skb %p completed\n"

l_.str.1:                               ; @.str.1
	.asciz	"tx_poll: q %d done. total pkts: %d\n"

	.comm	_ENA_TX_WAKEUP_THRESH,4,2       ; @ENA_TX_WAKEUP_THRESH
	.comm	_ENA_FLAG_DEV_UP,4,2            ; @ENA_FLAG_DEV_UP
	.no_dead_strip	_ena_clean_tx_irq
.subsections_via_symbols
