	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_pci_sriov_configure       ## -- Begin function i40e_pci_sriov_configure
	.p2align	4, 0x90
_i40e_pci_sriov_configure:              ## @i40e_pci_sriov_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	___I40E_VIRTCHNL_OP_PENDING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	4(%rax), %esi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.3:
	movl	(%r14), %eax
	movq	_I40E_FLAG_VEB_MODE_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_5
## %bb.4:
	orl	%eax, %ecx
	movl	%ecx, (%r14)
	movq	_I40E_PF_RESET_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i40e_do_reset_safe
LBB0_5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_i40e_pci_sriov_enable
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_6:
	movl	8(%r14), %edi
	callq	_pci_vfs_assigned
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_i40e_free_vfs
	movq	_I40E_FLAG_VEB_MODE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	_I40E_PF_RESET_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i40e_do_reset_safe
	xorl	%ebx, %ebx
LBB0_9:
	movl	(%r12), %edi
	movl	4(%r14), %esi
	callq	_clear_bit
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___I40E_VIRTCHNL_OP_PENDING,4,2 ## @__I40E_VIRTCHNL_OP_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to configure VFs, other operation is pending.\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I40E_FLAG_VEB_MODE_ENABLED,4,2 ## @I40E_FLAG_VEB_MODE_ENABLED
	.comm	_I40E_PF_RESET_FLAG,4,2         ## @I40E_PF_RESET_FLAG
L_.str.1:                               ## @.str.1
	.asciz	"Unable to free VFs because some are assigned to VMs.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_pci_sriov_configure       ; -- Begin function i40e_pci_sriov_configure
	.p2align	2
_i40e_pci_sriov_configure:              ; @i40e_pci_sriov_configure
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x22, ___I40E_VIRTCHNL_OP_PENDING@GOTPAGE
Lloh1:
	ldr	x22, [x22, ___I40E_VIRTCHNL_OP_PENDING@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x19, #4]
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh4:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_2:
	cbz	w21, LBB0_6
; %bb.3:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _I40E_FLAG_VEB_MODE_ENABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I40E_FLAG_VEB_MODE_ENABLED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	orr	w8, w9, w8
	str	w8, [x19]
Lloh10:
	adrp	x8, _I40E_PF_RESET_FLAG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I40E_PF_RESET_FLAG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i40e_do_reset_safe
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_i40e_pci_sriov_enable
	mov	x20, x0
	b	LBB0_9
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_pci_vfs_assigned
	cbz	w0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_i40e_free_vfs
Lloh18:
	adrp	x8, _I40E_FLAG_VEB_MODE_ENABLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40E_FLAG_VEB_MODE_ENABLED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh21:
	adrp	x8, _I40E_PF_RESET_FLAG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40E_PF_RESET_FLAG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i40e_do_reset_safe
	mov	w20, #0
LBB0_9:
	ldr	w0, [x22]
	ldr	w1, [x19, #4]
	bl	_clear_bit
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	___I40E_VIRTCHNL_OP_PENDING,4,2 ; @__I40E_VIRTCHNL_OP_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to configure VFs, other operation is pending.\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I40E_FLAG_VEB_MODE_ENABLED,4,2 ; @I40E_FLAG_VEB_MODE_ENABLED
	.comm	_I40E_PF_RESET_FLAG,4,2         ; @I40E_PF_RESET_FLAG
l_.str.1:                               ; @.str.1
	.asciz	"Unable to free VFs because some are assigned to VMs.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
