	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_alloc_sriov_res
_be_alloc_sriov_res:                    ## @be_alloc_sriov_res
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_pci_num_vf
	movl	%eax, %r14d
	movl	$0, -32(%rbp)
	movq	%rbx, %rdi
	callq	_be_get_sriov_config
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_be_max_vfs
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_pci_sriov_set_totalvfs
LBB0_2:
	movq	%rbx, %rdi
	callq	_skyhawk_chip
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_be_max_vfs
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.5:
	leaq	-32(%rbp), %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_be_calculate_vf_res
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_be_cmd_set_sriov_config
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to optimize SRIOV resources\n"

	.no_dead_strip	_be_alloc_sriov_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_alloc_sriov_res
_be_alloc_sriov_res:                    ; @be_alloc_sriov_res
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x0, [x0]
	bl	_pci_num_vf
	mov	x20, x0
	str	wzr, [sp, #8]
	mov	x0, x19
	bl	_be_get_sriov_config
	cbnz	w20, LBB0_2
; %bb.1:
	ldr	x21, [x19]
	mov	x0, x19
	bl	_be_max_vfs
	mov	x1, x0
	mov	x0, x21
	bl	_pci_sriov_set_totalvfs
LBB0_2:
	mov	x0, x19
	bl	_skyhawk_chip
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_be_max_vfs
	cbz	x0, LBB0_7
; %bb.4:
	cbnz	w20, LBB0_7
; %bb.5:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_be_calculate_vf_res
	ldr	w1, [x19, #8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_be_cmd_set_sriov_config
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to optimize SRIOV resources\n"

	.no_dead_strip	_be_alloc_sriov_res
.subsections_via_symbols
