	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_for_rx_interrupt_queue
_check_for_rx_interrupt_queue:          ## @check_for_rx_interrupt_queue
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rsi), %edi
	callq	_likely
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	12(%rbx), %edi
	callq	_ena_com_cq_empty
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	_ENA_MAX_NO_INTERRUPT_ITERATIONS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movl	8(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
	movq	_ENA_REGS_RESET_MISS_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_smp_mb__before_atomic
	movq	_ENA_FLAG_TRIGGER_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_MAX_NO_INTERRUPT_ITERATIONS,8,3 ## @ENA_MAX_NO_INTERRUPT_ITERATIONS
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Potential MSIX issue on Rx side Queue = %d. Reset the device\n"

	.comm	_ENA_REGS_RESET_MISS_INTERRUPT,4,2 ## @ENA_REGS_RESET_MISS_INTERRUPT
	.comm	_ENA_FLAG_TRIGGER_RESET,4,2     ## @ENA_FLAG_TRIGGER_RESET
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_check_for_rx_interrupt_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_for_rx_interrupt_queue
_check_for_rx_interrupt_queue:          ; @check_for_rx_interrupt_queue
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #16]
	bl	_likely
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_ena_com_cq_empty
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
Lloh0:
	adrp	x9, _ENA_MAX_NO_INTERRUPT_ITERATIONS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENA_MAX_NO_INTERRUPT_ITERATIONS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _rx_err@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	ldr	w4, [x20, #8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh8:
	adrp	x8, _ENA_REGS_RESET_MISS_INTERRUPT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENA_REGS_RESET_MISS_INTERRUPT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	bl	_smp_mb__before_atomic
Lloh11:
	adrp	x8, _ENA_FLAG_TRIGGER_RESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENA_FLAG_TRIGGER_RESET@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_MAX_NO_INTERRUPT_ITERATIONS,8,3 ; @ENA_MAX_NO_INTERRUPT_ITERATIONS
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Potential MSIX issue on Rx side Queue = %d. Reset the device\n"

	.comm	_ENA_REGS_RESET_MISS_INTERRUPT,4,2 ; @ENA_REGS_RESET_MISS_INTERRUPT
	.comm	_ENA_FLAG_TRIGGER_RESET,4,2     ; @ENA_FLAG_TRIGGER_RESET
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_check_for_rx_interrupt_queue
.subsections_via_symbols
