	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function BEx_get_resources
_BEx_get_resources:                     ## @BEx_get_resources
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	callq	_be_physfn
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_BE_VF_UC_PMAC_COUNT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_BE_UC_PMAC_COUNT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movl	16(%rbx), %edi
	callq	_be_convert_mc_type
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_be_is_mc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_be_is_qnq_mode
	movq	_BE_NUM_VLANS_SUPPORTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_BE_NUM_VLANS_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_6:
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	decl	%eax
LBB0_8:
	movl	%eax, (%r14)
	movq	_BE_MAX_MC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	%rbx, %rdi
	callq	_BE2_chip
	orq	%r15, %rax
	jne	LBB0_13
## %bb.9:
	cmpl	$1, (%rbx)
	jg	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_be_virtfn
	testq	%rax, %rax
	je	LBB0_11
LBB0_13:
	movl	$1, 4(%r14)
LBB0_18:
	movq	_BE_FUNCTION_CAPS_RSS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_25
## %bb.19:
	testq	%r15, %r15
	jne	LBB0_25
## %bb.20:
	movq	%rbx, %rdi
	callq	_be_physfn
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	cmpq	$0, 8(%rbx)
	jne	LBB0_22
## %bb.23:
	movq	_BE2_MAX_RSS_QS@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_22:
	movq	_BE3_MAX_RSS_QS@GOTPCREL(%rip), %rax
LBB0_24:
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
LBB0_25:
	movq	16(%r14), %rax
	incq	%rax
	movq	%rax, 24(%r14)
	movq	%rbx, %rdi
	callq	_be_physfn
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	movq	%rbx, %rdi
	callq	_be_max_vfs
	testq	%rax, %rax
	jle	LBB0_28
## %bb.29:
	movq	_BE3_SRIOV_MAX_EVT_QS@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_26:
	movl	$1, %eax
	jmp	LBB0_31
LBB0_28:
	movq	_BE3_MAX_EVT_QS@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %eax
LBB0_31:
	movl	%eax, 8(%r14)
	movq	_BE_IF_CAP_FLAGS_WANT@GOTPCREL(%rip), %rcx
	movq	_BE_IF_FLAGS_DEFQ_RSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rcx), %eax
	movl	%eax, 12(%r14)
	movl	(%r12), %ecx
	testl	%ecx, 4(%rbx)
	jne	LBB0_33
## %bb.32:
	movq	_BE_IF_FLAGS_RSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 12(%r14)
LBB0_33:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_be_is_mc
	movl	4(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_BE_FUNCTION_CAPS_RSS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_13
LBB0_14:
	movq	_BE_FUNCTION_CAPS_SUPER_NIC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.15:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_ACTIVE_PROFILE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RESOURCE_LIMITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_be_cmd_get_profile_config
	movl	-76(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_17
LBB0_16:
	movq	_BE3_MAX_TX_QS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	movl	%eax, 4(%r14)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_UC_PMAC_COUNT,4,2           ## @BE_UC_PMAC_COUNT
	.comm	_BE_VF_UC_PMAC_COUNT,4,2        ## @BE_VF_UC_PMAC_COUNT
	.comm	_BE_NUM_VLANS_SUPPORTED,4,2     ## @BE_NUM_VLANS_SUPPORTED
	.comm	_BE_MAX_MC,4,2                  ## @BE_MAX_MC
	.comm	_BE_FUNCTION_CAPS_RSS,4,2       ## @BE_FUNCTION_CAPS_RSS
	.comm	_BE_FUNCTION_CAPS_SUPER_NIC,4,2 ## @BE_FUNCTION_CAPS_SUPER_NIC
	.comm	_ACTIVE_PROFILE_TYPE,4,2        ## @ACTIVE_PROFILE_TYPE
	.comm	_RESOURCE_LIMITS,4,2            ## @RESOURCE_LIMITS
	.comm	_BE3_MAX_TX_QS,8,3              ## @BE3_MAX_TX_QS
	.comm	_BE3_MAX_RSS_QS,8,3             ## @BE3_MAX_RSS_QS
	.comm	_BE2_MAX_RSS_QS,8,3             ## @BE2_MAX_RSS_QS
	.comm	_BE3_SRIOV_MAX_EVT_QS,4,2       ## @BE3_SRIOV_MAX_EVT_QS
	.comm	_BE3_MAX_EVT_QS,4,2             ## @BE3_MAX_EVT_QS
	.comm	_BE_IF_CAP_FLAGS_WANT,4,2       ## @BE_IF_CAP_FLAGS_WANT
	.comm	_BE_IF_FLAGS_DEFQ_RSS,4,2       ## @BE_IF_FLAGS_DEFQ_RSS
	.comm	_BE_IF_FLAGS_RSS,4,2            ## @BE_IF_FLAGS_RSS
	.no_dead_strip	_BEx_get_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BEx_get_resources
_BEx_get_resources:                     ; @BEx_get_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #24]
	bl	_be_physfn
Lloh0:
	adrp	x8, _BE_VF_UC_PMAC_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BE_VF_UC_PMAC_COUNT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BE_UC_PMAC_COUNT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BE_UC_PMAC_COUNT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	w0, [x20, #16]
	bl	_be_convert_mc_type
	str	w0, [x20, #20]
	mov	x0, x20
	bl	_be_is_mc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_be_is_qnq_mode
Lloh4:
	adrp	x8, _BE_NUM_VLANS_SUPPORTED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BE_NUM_VLANS_SUPPORTED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #2
	sub	w9, w9, #1
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #3
	cmp	x0, #0
	csel	w8, w9, w8, eq
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _BE_NUM_VLANS_SUPPORTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BE_NUM_VLANS_SUPPORTED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
LBB0_3:
	str	w8, [x19]
Lloh10:
	adrp	x8, _BE_MAX_MC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BE_MAX_MC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	mov	x0, x20
	bl	_BE2_chip
Lloh13:
	adrp	x22, _BE_FUNCTION_CAPS_RSS@GOTPAGE
Lloh14:
	ldr	x22, [x22, _BE_FUNCTION_CAPS_RSS@GOTPAGEOFF]
	orr	x8, x0, x21
	cbnz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x20]
	cmp	w8, #1
	b.gt	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_be_virtfn
	cbz	x0, LBB0_16
LBB0_6:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_7:
	ldr	w8, [x20, #4]
	ldr	w9, [x22]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	x21, #0, #0, ne
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_be_physfn
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x9, _BE3_MAX_RSS_QS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BE3_MAX_RSS_QS@GOTPAGEOFF]
Lloh17:
	adrp	x10, _BE2_MAX_RSS_QS@GOTPAGE
Lloh18:
	ldr	x10, [x10, _BE2_MAX_RSS_QS@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_10:
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #24]
	mov	x0, x20
	bl	_be_physfn
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_be_max_vfs
Lloh19:
	adrp	x8, _BE3_SRIOV_MAX_EVT_QS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BE3_SRIOV_MAX_EVT_QS@GOTPAGEOFF]
Lloh21:
	adrp	x9, _BE3_MAX_EVT_QS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BE3_MAX_EVT_QS@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, gt
	ldr	w8, [x8]
	b	LBB0_13
LBB0_12:
	mov	w8, #1
LBB0_13:
Lloh23:
	adrp	x9, _BE_IF_CAP_FLAGS_WANT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BE_IF_CAP_FLAGS_WANT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _BE_IF_FLAGS_DEFQ_RSS@GOTPAGE
Lloh27:
	ldr	x10, [x10, _BE_IF_FLAGS_DEFQ_RSS@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	bic	w9, w9, w10
	stp	w8, w9, [x19, #8]
	ldr	w8, [x20, #4]
	ldr	w10, [x22]
	tst	w10, w8
	b.ne	LBB0_15
; %bb.14:
Lloh29:
	adrp	x8, _BE_IF_FLAGS_RSS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BE_IF_FLAGS_RSS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	bic	w8, w9, w8
	str	w8, [x19, #12]
LBB0_15:
	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
	add	sp, sp, #96
	ret
LBB0_16:
	mov	x0, x20
	bl	_be_is_mc
	ldr	w8, [x20, #4]
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_18:
Lloh32:
	adrp	x9, _BE_FUNCTION_CAPS_SUPER_NIC@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BE_FUNCTION_CAPS_SUPER_NIC@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
Lloh35:
	adrp	x8, _ACTIVE_PROFILE_TYPE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ACTIVE_PROFILE_TYPE@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
Lloh38:
	adrp	x8, _RESOURCE_LIMITS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RESOURCE_LIMITS@GOTPAGEOFF]
Lloh40:
	ldr	w4, [x8]
	mov	x1, sp
	mov	x0, x20
	mov	x2, #0
	mov	w5, #0
	bl	_be_cmd_get_profile_config
	ldr	w8, [sp, #4]
Lloh41:
	adrp	x9, _BE3_MAX_TX_QS@GOTPAGE
Lloh42:
	ldr	x9, [x9, _BE3_MAX_TX_QS@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	w8, #0
	csel	x8, x9, x8, eq
	b	LBB0_21
LBB0_20:
Lloh44:
	adrp	x8, _BE3_MAX_TX_QS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BE3_MAX_TX_QS@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
LBB0_21:
	str	w8, [x19, #4]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_UC_PMAC_COUNT,4,2           ; @BE_UC_PMAC_COUNT
	.comm	_BE_VF_UC_PMAC_COUNT,4,2        ; @BE_VF_UC_PMAC_COUNT
	.comm	_BE_NUM_VLANS_SUPPORTED,4,2     ; @BE_NUM_VLANS_SUPPORTED
	.comm	_BE_MAX_MC,4,2                  ; @BE_MAX_MC
	.comm	_BE_FUNCTION_CAPS_RSS,4,2       ; @BE_FUNCTION_CAPS_RSS
	.comm	_BE_FUNCTION_CAPS_SUPER_NIC,4,2 ; @BE_FUNCTION_CAPS_SUPER_NIC
	.comm	_ACTIVE_PROFILE_TYPE,4,2        ; @ACTIVE_PROFILE_TYPE
	.comm	_RESOURCE_LIMITS,4,2            ; @RESOURCE_LIMITS
	.comm	_BE3_MAX_TX_QS,8,3              ; @BE3_MAX_TX_QS
	.comm	_BE3_MAX_RSS_QS,8,3             ; @BE3_MAX_RSS_QS
	.comm	_BE2_MAX_RSS_QS,8,3             ; @BE2_MAX_RSS_QS
	.comm	_BE3_SRIOV_MAX_EVT_QS,4,2       ; @BE3_SRIOV_MAX_EVT_QS
	.comm	_BE3_MAX_EVT_QS,4,2             ; @BE3_MAX_EVT_QS
	.comm	_BE_IF_CAP_FLAGS_WANT,4,2       ; @BE_IF_CAP_FLAGS_WANT
	.comm	_BE_IF_FLAGS_DEFQ_RSS,4,2       ; @BE_IF_FLAGS_DEFQ_RSS
	.comm	_BE_IF_FLAGS_RSS,4,2            ; @BE_IF_FLAGS_RSS
	.no_dead_strip	_BEx_get_resources
.subsections_via_symbols
