	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_sriov_set_totalvfs         ## -- Begin function pci_sriov_set_totalvfs
	.p2align	4, 0x90
_pci_sriov_set_totalvfs:                ## @pci_sriov_set_totalvfs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.3:
	movq	(%rdi), %rax
	cmpq	%rsi, (%rax)
	jge	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_PCI_SRIOV_CTRL_VFE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_7
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	%rsi, 16(%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_SRIOV_CTRL_VFE,4,2         ## @PCI_SRIOV_CTRL_VFE
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_sriov_set_totalvfs         ; -- Begin function pci_sriov_set_totalvfs
	.p2align	2
_pci_sriov_set_totalvfs:                ; @pci_sriov_set_totalvfs
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x9, [x8]
	cmp	x9, x1
	b.ge	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	w9, [x8, #8]
Lloh4:
	adrp	x10, _PCI_SRIOV_CTRL_VFE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _PCI_SRIOV_CTRL_VFE@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.5:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
	mov	w0, #0
	str	x1, [x8, #16]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_SRIOV_CTRL_VFE,4,2         ; @PCI_SRIOV_CTRL_VFE
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
