	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_need_reserve_rings
_bnxt_need_reserve_rings:               ## @bnxt_need_reserve_rings
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_bnxt_cp_rings_in_use
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_bnxt_nq_rings_in_use
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$67073, 4(%rbx)                 ## imm = 0x10601
	jl	LBB0_16
## %bb.1:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	24(%rbx), %rcx
	movl	$1, %eax
	cmpq	8(%rbx), %rcx
	jne	LBB0_16
## %bb.2:
	movl	(%rbx), %ecx
	movl	16(%rbx), %r13d
	movq	_BNXT_FLAG_RFS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	leal	1(%rcx), %eax
	movl	$1, %r12d
	cmovel	%eax, %r12d
	jmp	LBB0_5
LBB0_3:
	movl	$1, %r12d
LBB0_5:
	movq	_BNXT_FLAG_AGG_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_bnxt_get_func_stat_ctxs
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_BNXT_NEW_RM
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	testl	%r13d, %r14d
	setne	%cl
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%esi, %edx
	shll	%cl, %edx
	movl	$1, %eax
	cmpl	%edx, 32(%rbx)
	jne	LBB0_16
## %bb.7:
	cmpl	%r15d, 36(%rbx)
	jne	LBB0_16
## %bb.8:
	cmpl	%r12d, 40(%rbx)
	jne	LBB0_16
## %bb.9:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 44(%rbx)
	jne	LBB0_16
## %bb.10:
	cmpl	%esi, 48(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rbx)
	je	LBB0_16
LBB0_12:
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_15
## %bb.13:
	movq	%rbx, %rdi
	callq	_BNXT_PF
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	$1, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 52(%rbx)
	jne	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FLAG_RFS,4,2              ## @BNXT_FLAG_RFS
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_BNXT_FLAG_AGG_RINGS,4,2        ## @BNXT_FLAG_AGG_RINGS
	.no_dead_strip	_bnxt_need_reserve_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_need_reserve_rings
_bnxt_need_reserve_rings:               ; @bnxt_need_reserve_rings
	.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
	bl	_bnxt_cp_rings_in_use
	mov	x21, x0
	mov	x0, x19
	bl	_bnxt_nq_rings_in_use
	ldr	w8, [x19, #4]
	mov	w9, #1537
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_16
LBB0_2:
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.3:
	mov	x20, x0
	ldr	w24, [x19]
Lloh0:
	adrp	x8, _BNXT_FLAG_RFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_FLAG_RFS@GOTPAGEOFF]
	ldr	w26, [x19, #16]
Lloh2:
	ldr	w8, [x8]
	mov	w25, #1
Lloh3:
	adrp	x23, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh4:
	ldr	x23, [x23, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
	tst	w8, w26
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x23]
	tst	w8, w26
	csinc	w25, w25, w24, ne
LBB0_5:
Lloh5:
	adrp	x8, _BNXT_FLAG_AGG_RINGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BNXT_FLAG_AGG_RINGS@GOTPAGEOFF]
Lloh7:
	ldr	w27, [x8]
	mov	x0, x19
	bl	_bnxt_get_func_stat_ctxs
	mov	x22, x0
	mov	x0, x19
	bl	_BNXT_NEW_RM
	cbz	x0, LBB0_12
; %bb.6:
	tst	w27, w26
	cset	w8, ne
	lsl	w8, w24, w8
	ldr	w9, [x19, #32]
	cmp	w9, w8
	b.ne	LBB0_15
; %bb.7:
	ldr	w8, [x19, #36]
	cmp	w8, w21
	b.ne	LBB0_15
; %bb.8:
	ldr	w8, [x19, #40]
	cmp	w8, w25
	b.ne	LBB0_15
; %bb.9:
	ldr	w8, [x19, #44]
	cmp	w8, w22
	b.ne	LBB0_15
; %bb.10:
	ldr	w8, [x19, #48]
	cmp	w8, w24
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x19, #16]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_12:
	ldr	w8, [x19, #16]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.13:
	mov	x0, x19
	bl	_BNXT_PF
	cbz	x0, LBB0_1
; %bb.14:
	ldr	w8, [x19, #52]
	cmp	w8, w20
	b.eq	LBB0_1
LBB0_15:
	mov	w0, #1
LBB0_16:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FLAG_RFS,4,2              ; @BNXT_FLAG_RFS
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_BNXT_FLAG_AGG_RINGS,4,2        ; @BNXT_FLAG_AGG_RINGS
	.no_dead_strip	_bnxt_need_reserve_rings
.subsections_via_symbols
