	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_bnx2x_next_idx
_cnic_bnx2x_next_idx:                   ## @cnic_bnx2x_next_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	leal	1(%rdi), %ecx
	movq	_MAX_KCQE_CNT@GOTPCREL(%rip), %rdx
	movl	%ecx, %esi
	notl	%esi
	leal	2(%rdi), %eax
	testl	%esi, (%rdx)
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_KCQE_CNT,4,2               ## @MAX_KCQE_CNT
	.no_dead_strip	_cnic_bnx2x_next_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_bnx2x_next_idx
_cnic_bnx2x_next_idx:                   ; @cnic_bnx2x_next_idx
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_KCQE_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_KCQE_CNT@GOTPAGEOFF]
	add	w9, w0, #1
Lloh2:
	ldr	w8, [x8]
	add	w10, w0, #2
	bics	wzr, w8, w9
	csinc	w0, w10, w0, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_KCQE_CNT,4,2               ; @MAX_KCQE_CNT
	.no_dead_strip	_cnic_bnx2x_next_idx
.subsections_via_symbols
