	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_vf_chk_avail_resc
_bnx2x_vf_chk_avail_resc:               ## @bnx2x_vf_chk_avail_resc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_vf_rxq_count
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_vf_max_queue_cnt
	movq	%rax, %rbx
LBB0_2:
	movq	%r12, %rdi
	callq	_vf_txq_count
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_vf_max_queue_cnt
LBB0_4:
	xorl	%r15d, %r15d
	cmpq	%rbx, (%r14)
	jg	LBB0_9
## %bb.5:
	cmpq	%rax, 8(%r14)
	jg	LBB0_9
## %bb.6:
	movq	16(%r14), %rbx
	movq	%r12, %rdi
	callq	_vf_sb_count
	cmpq	%rax, %rbx
	jg	LBB0_9
## %bb.7:
	movq	24(%r14), %rbx
	movq	%r12, %rdi
	callq	_vf_mac_rules_cnt
	cmpq	%rax, %rbx
	jg	LBB0_9
## %bb.8:
	movq	32(%r14), %rbx
	movq	%r12, %rdi
	callq	_vf_vlan_rules_cnt
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	setle	%r15b
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bnx2x_vf_chk_avail_resc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_vf_chk_avail_resc
_bnx2x_vf_chk_avail_resc:               ; @bnx2x_vf_chk_avail_resc
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_vf_rxq_count
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_bnx2x_vf_max_queue_cnt
	mov	x22, x0
LBB0_2:
	mov	x0, x19
	bl	_vf_txq_count
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	bl	_bnx2x_vf_max_queue_cnt
LBB0_4:
	ldr	x8, [x20]
	cmp	x8, x22
	b.gt	LBB0_8
; %bb.5:
	ldr	x8, [x20, #8]
	cmp	x8, x0
	b.gt	LBB0_8
; %bb.6:
	ldr	x21, [x20, #16]
	mov	x0, x19
	bl	_vf_sb_count
	cmp	x21, x0
	b.gt	LBB0_8
; %bb.7:
	ldr	x21, [x20, #24]
	mov	x0, x19
	bl	_vf_mac_rules_cnt
	cmp	x21, x0
	b.le	LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
LBB0_10:
	ldr	x20, [x20, #32]
	mov	x0, x19
	bl	_vf_vlan_rules_cnt
	cmp	x20, x0
	cset	w0, le
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bnx2x_vf_chk_avail_resc
.subsections_via_symbols
