	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_get_resources
_be_get_resources:                      ## @be_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	callq	_BEx_chip
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_BEx_get_resources
LBB0_7:
	movq	%rbx, %rdi
	callq	_be_roce_supported
	movl	-56(%rbp), %ecx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, %ecx
LBB0_9:
	movl	%ecx, -60(%rbp)
	movaps	-80(%rbp), %xmm0
	movups	%xmm0, 16(%rbx)
	movl	-64(%rbp), %eax
	movl	%eax, 32(%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, 36(%rbx)
	movq	-56(%rbp), %rax
	movq	%rax, 40(%rbx)
	movq	%rbx, %rdi
	callq	_be_if_cap_flags
	movq	_BE_IF_FLAGS_DEFQ_RSS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	sete	%dl
	movl	%edx, (%rbx)
	movq	%rbx, %rdi
	callq	_be_max_txqs
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_be_max_rxqs
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_be_max_rss
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_be_max_nic_eqs
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_be_max_vfs
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_dev_info
	movq	%rbx, %rdi
	callq	_be_max_uc
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_be_max_mc
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_be_max_vlans
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_info
	movq	_u16@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_netif_get_num_default_rss_queues
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_be_max_qp_irqs
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_min_t
	movl	%eax, 4(%rbx)
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	callq	_be_cmd_get_func_config
	testl	%eax, %eax
	je	LBB0_3
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-80(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	cmpq	-72(%rbp), %rax
	jne	LBB0_7
## %bb.5:
	movq	_BE_IF_FLAGS_DEFQ_RSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -64(%rbp)
	jne	LBB0_7
## %bb.6:
	decq	%rax
	movq	%rax, -80(%rbp)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_IF_FLAGS_DEFQ_RSS,4,2       ## @BE_IF_FLAGS_DEFQ_RSS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Max: txqs %d, rxqs %d, rss %d, eqs %d, vfs %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Max: uc-macs %d, mc-macs %d, vlans %d\n"

	.comm	_u16,4,2                        ## @u16
	.no_dead_strip	_be_get_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_get_resources
_be_get_resources:                      ; @be_get_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	x20, [x0, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	bl	_BEx_chip
	add	x1, sp, #16
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_BEx_get_resources
LBB0_2:
	mov	x0, x19
	bl	_be_roce_supported
	ldr	w8, [sp, #40]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	cmp	x0, #0
	csel	w8, w8, w9, eq
	str	w8, [sp, #36]
	ldp	q0, q1, [sp, #16]
	stp	q0, q1, [x19, #16]
	mov	x0, x19
	bl	_be_if_cap_flags
Lloh0:
	adrp	x8, _BE_IF_FLAGS_DEFQ_RSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BE_IF_FLAGS_DEFQ_RSS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, eq
	str	w8, [x19]
	mov	x0, x19
	bl	_be_max_txqs
	mov	x21, x0
	mov	x0, x19
	bl	_be_max_rxqs
	mov	x22, x0
	mov	x0, x19
	bl	_be_max_rss
	mov	x23, x0
	mov	x0, x19
	bl	_be_max_nic_eqs
	mov	x24, x0
	mov	x0, x19
	bl	_be_max_vfs
                                        ; kill: def $w0 killed $w0 def $x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	stp	x24, x0, [sp]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	bl	_dev_info
	mov	x0, x19
	bl	_be_max_uc
	mov	x21, x0
	mov	x0, x19
	bl	_be_max_mc
	mov	x22, x0
	mov	x0, x19
	bl	_be_max_vlans
	mov	x4, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_dev_info
Lloh7:
	adrp	x8, _u16@GOTPAGE
Lloh8:
	ldr	x8, [x8, _u16@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	bl	_netif_get_num_default_rss_queues
	mov	x21, x0
	mov	x0, x19
	bl	_be_max_qp_irqs
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_min_t
	mov	x8, x0
	mov	w0, #0
	stp	w8, w8, [x19, #4]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_be_cmd_get_func_config
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_2
; %bb.6:
	ldr	x9, [sp, #24]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.7:
	ldr	w9, [sp, #32]
Lloh10:
	adrp	x10, _BE_IF_FLAGS_DEFQ_RSS@GOTPAGE
Lloh11:
	ldr	x10, [x10, _BE_IF_FLAGS_DEFQ_RSS@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_2
; %bb.8:
	sub	x8, x8, #1
	str	x8, [sp, #16]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_IF_FLAGS_DEFQ_RSS,4,2       ; @BE_IF_FLAGS_DEFQ_RSS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Max: txqs %d, rxqs %d, rss %d, eqs %d, vfs %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Max: uc-macs %d, mc-macs %d, vlans %d\n"

	.comm	_u16,4,2                        ; @u16
	.no_dead_strip	_be_get_resources
.subsections_via_symbols
