	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_iov_configure            ## -- Begin function fm10k_iov_configure
	.p2align	4, 0x90
_fm10k_iov_configure:                   ## @fm10k_iov_configure
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_pci_num_vf
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_pci_vfs_assigned
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %r14d
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_pci_disable_sriov
	movq	%rbx, %rdi
	callq	_fm10k_iov_free_data
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_fm10k_iov_alloc_data
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.7:
	cmpl	%r15d, %r14d
	je	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_pci_enable_sriov
	movl	%eax, %r15d
	movl	%r14d, %eax
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %eax
	jmp	LBB0_5
LBB0_11:
	movl	%r14d, %eax
LBB0_5:
	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	"Cannot modify SR-IOV while VFs are assigned\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enable PCI SR-IOV failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_iov_configure            ; -- Begin function fm10k_iov_configure
	.p2align	2
_fm10k_iov_configure:                   ; @fm10k_iov_configure
	.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	x20, x1
	mov	x19, x0
	bl	_pci_num_vf
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_pci_vfs_assigned
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x20, x21
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_pci_disable_sriov
	mov	x0, x19
	bl	_fm10k_iov_free_data
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_fm10k_iov_alloc_data
	cbnz	w0, LBB0_10
; %bb.5:
	cbz	w20, LBB0_9
; %bb.6:
	cmp	w20, w21
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_enable_sriov
	mov	x21, x0
	mov	x0, x20
	cbz	w21, LBB0_10
; %bb.8:
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	b	LBB0_10
LBB0_9:
	mov	x0, x20
LBB0_10:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot modify SR-IOV while VFs are assigned\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enable PCI SR-IOV failed: %d\n"

.subsections_via_symbols
