	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_get_sriov_config
_be_get_sriov_config:                   ## @be_get_sriov_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	movq	_ACTIVE_PROFILE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RESOURCE_LIMITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_be_cmd_get_profile_config
	movq	%rbx, %rdi
	callq	_BE3_chip
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$0, -32(%rbp)
	jne	LBB0_6
## %bb.2:
	movq	8(%rbx), %rdi
	callq	_pci_sriov_get_totalvfs
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movq	_MAX_VFS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_min
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, -32(%rbp)
LBB0_6:
	movq	-32(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	-24(%rbp), %rax
	movq	%rax, 24(%rbx)
	movq	8(%rbx), %rdi
	callq	_pci_num_vf
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_info
	movq	8(%rbx), %rdi
	callq	_pci_sriov_get_totalvfs
	movq	%rax, 16(%rbx)
	movl	%r14d, (%rbx)
LBB0_8:
	movq	%rbx, %rdi
	callq	_skyhawk_chip
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	callq	_be_max_vfs
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	testl	%r14d, %r14d
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_be_calculate_pf_pool_rss_tables
	movq	8(%rbx), %r14
	movq	%rbx, %rdi
	callq	_be_max_pf_pool_rss_tables
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_info
LBB0_12:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACTIVE_PROFILE_TYPE,4,2        ## @ACTIVE_PROFILE_TYPE
	.comm	_RESOURCE_LIMITS,4,2            ## @RESOURCE_LIMITS
	.comm	_MAX_VFS,4,2                    ## @MAX_VFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d VFs are already enabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"RSS can be enabled for all VFs if num_vfs <= %d\n"

	.no_dead_strip	_be_get_sriov_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_get_sriov_config
_be_get_sriov_config:                   ; @be_get_sriov_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _ACTIVE_PROFILE_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACTIVE_PROFILE_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _RESOURCE_LIMITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESOURCE_LIMITS@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x1, sp
	mov	x2, #0
	mov	w5, #0
	bl	_be_cmd_get_profile_config
	mov	x0, x19
	bl	_BE3_chip
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [sp]
	cbnz	x8, LBB0_6
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_pci_sriov_get_totalvfs
	mov	x1, x0
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MAX_VFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_VFS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_min
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	str	x0, [sp]
LBB0_6:
	ldr	q0, [sp]
	str	q0, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_pci_num_vf
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_info
	ldr	x0, [x19, #8]
	bl	_pci_sriov_get_totalvfs
	str	x0, [x19, #16]
	str	w20, [x19]
LBB0_8:
	mov	x0, x19
	bl	_skyhawk_chip
	cbz	x0, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_be_max_vfs
	cbz	x0, LBB0_12
; %bb.10:
	cbnz	w20, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_be_calculate_pf_pool_rss_tables
	ldr	x20, [x19, #8]
	mov	x0, x19
	bl	_be_max_pf_pool_rss_tables
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ACTIVE_PROFILE_TYPE,4,2        ; @ACTIVE_PROFILE_TYPE
	.comm	_RESOURCE_LIMITS,4,2            ; @RESOURCE_LIMITS
	.comm	_MAX_VFS,4,2                    ; @MAX_VFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d VFs are already enabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"RSS can be enabled for all VFs if num_vfs <= %d\n"

	.no_dead_strip	_be_get_sriov_config
.subsections_via_symbols
