	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_find_max_ring
_bnx2_find_max_ring:                    ## @bnx2_find_max_ring
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BNX2_MAX_RX_DESC_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, %ecx
	cmpq	%rdi, %rax
	jge	LBB0_3
## %bb.1:
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	subq	%rax, %rdi
	incq	%rcx
	cmpq	%rax, %rdi
	jg	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rax
	sarq	%rsi
	testq	%rcx, %rax
	je	LBB0_3
## %bb.4:
	cmpq	%rax, %rcx
	setne	%cl
	shlq	%cl, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_MAX_RX_DESC_CNT,8,3       ## @BNX2_MAX_RX_DESC_CNT
	.no_dead_strip	_bnx2_find_max_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_find_max_ring
_bnx2_find_max_ring:                    ; @bnx2_find_max_ring
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BNX2_MAX_RX_DESC_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_MAX_RX_DESC_CNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	mov	w8, #1
	cmp	x9, x0
	b.ge	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, #1
	sub	x0, x0, x9
	cmp	x0, x9
	b.gt	LBB0_1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x1
	asr	x1, x1, #1
	tst	x9, x8
	b.eq	LBB0_2
; %bb.3:
	cmp	x8, x9
	cset	w8, ne
	lsl	x0, x9, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_MAX_RX_DESC_CNT,8,3       ; @BNX2_MAX_RX_DESC_CNT
	.no_dead_strip	_bnx2_find_max_ring
.subsections_via_symbols
