	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_for_empty_rx_ring
_check_for_empty_rx_ring:               ## @check_for_empty_rx_ring
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ENA_FLAG_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_ENA_FLAG_TRIGGER_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.3:
	movl	$20, %ebx
	xorl	%r13d, %r13d
	movq	_EMPTY_RX_REFILL@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, -12(%r15,%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r15
	movl	8(%r15,%rbx), %edi
	callq	_ena_com_free_desc
	movl	-20(%r15,%rbx), %ecx
	decl	%ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-12(%r15,%rbx), %rax
	incq	%rax
	movq	%rax, -12(%r15,%rbx)
	cmpq	(%r12), %rax
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r15,%rbx), %r12
	movq	%r12, %rdi
	callq	_u64_stats_update_begin
	incl	4(%r15,%rbx)
	movq	%r12, %rdi
	movq	_EMPTY_RX_REFILL@GOTPCREL(%rip), %r12
	callq	_u64_stats_update_end
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rcx
	movl	%r13d, %r8d
	callq	_netif_err
	movl	-4(%r15,%rbx), %edi
	callq	_napi_schedule
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_FLAG_DEV_UP,4,2            ## @ENA_FLAG_DEV_UP
	.comm	_ENA_FLAG_TRIGGER_RESET,4,2     ## @ENA_FLAG_TRIGGER_RESET
	.comm	_EMPTY_RX_REFILL,8,3            ## @EMPTY_RX_REFILL
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trigger refill for ring %d\n"

	.no_dead_strip	_check_for_empty_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_for_empty_rx_ring
_check_for_empty_rx_ring:               ; @check_for_empty_rx_ring
	.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	x19, x0
Lloh0:
	adrp	x8, _ENA_FLAG_DEV_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENA_FLAG_DEV_UP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #16
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENA_FLAG_TRIGGER_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENA_FLAG_TRIGGER_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_3
LBB0_2:
	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
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:
	mov	x23, #0
	mov	x20, #0
Lloh6:
	adrp	x24, _EMPTY_RX_REFILL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EMPTY_RX_REFILL@GOTPAGEOFF]
Lloh8:
	adrp	x25, _drv@GOTPAGE
Lloh9:
	ldr	x25, [x25, _drv@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x26, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	x23, x23, #32
	cmp	x20, x8
	b.ge	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #8]
	add	x26, x22, x23
	ldr	w0, [x26, #28]
	bl	_ena_com_free_desc
	ldr	w8, [x26]
	sub	w8, w8, #1
	cmp	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x26, #8]
	add	x8, x8, #1
	str	x8, [x26, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x22, x23
	add	x22, x27, #20
	mov	x0, x22
	bl	_u64_stats_update_begin
	ldr	w8, [x27, #24]
	add	w8, w8, #1
	str	w8, [x27, #24]
	mov	x0, x22
	bl	_u64_stats_update_end
	ldr	w1, [x25]
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	x3, x21
	mov	x4, x20
	bl	_netif_err
	ldr	w0, [x27, #16]
	bl	_napi_schedule
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_FLAG_DEV_UP,4,2            ; @ENA_FLAG_DEV_UP
	.comm	_ENA_FLAG_TRIGGER_RESET,4,2     ; @ENA_FLAG_TRIGGER_RESET
	.comm	_EMPTY_RX_REFILL,8,3            ; @EMPTY_RX_REFILL
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trigger refill for ring %d\n"

	.no_dead_strip	_check_for_empty_rx_ring
.subsections_via_symbols
