	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_farch_handle_rx_bad_index
_efx_farch_handle_rx_bad_index:         ## @efx_farch_handle_rx_bad_index
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_efx_rx_queue_channel
	movq	16(%rbx), %r15
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	testl	%edx, %edx
	je	LBB0_1
## %bb.3:
	leal	(%rdx,%rcx), %esi
	decl	%esi
	movl	8(%rbx), %edx
	andl	%edx, %esi
	cmpl	%r14d, %esi
	jne	LBB0_2
## %bb.4:
	incl	(%rax)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	movl	8(%rbx), %edx
LBB0_2:
	andl	%edx, %ecx
	movl	%r14d, %r8d
	subl	%ecx, %r8d
	andl	%edx, %r8d
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %r9d
	callq	_netif_info
	movq	_RESET_TYPE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_efx_schedule_reset
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dropped %d events (index=%d expected=%d)\n"

	.comm	_RESET_TYPE_DISABLE,4,2         ## @RESET_TYPE_DISABLE
	.no_dead_strip	_efx_farch_handle_rx_bad_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_farch_handle_rx_bad_index
_efx_farch_handle_rx_bad_index:         ; @efx_farch_handle_rx_bad_index
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_efx_rx_queue_channel
	ldr	x20, [x21, #16]
	ldp	w9, w8, [x21]
	cbz	w9, LBB0_3
; %bb.1:
	add	w9, w9, w8
	sub	w10, w9, #1
	ldr	w9, [x21, #8]
	and	w10, w10, w9
	cmp	w10, w19
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	mov	w0, #1
	b	LBB0_5
LBB0_3:
	ldr	w9, [x21, #8]
LBB0_4:
	and	w6, w9, w8
	sub	w8, w19, w6
	and	w4, w8, w9
Lloh0:
	adrp	x8, _rx_err@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x5, x19
	bl	_netif_info
Lloh5:
	adrp	x8, _RESET_TYPE_DISABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RESET_TYPE_DISABLE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_efx_schedule_reset
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dropped %d events (index=%d expected=%d)\n"

	.comm	_RESET_TYPE_DISABLE,4,2         ; @RESET_TYPE_DISABLE
	.no_dead_strip	_efx_farch_handle_rx_bad_index
.subsections_via_symbols
