	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sriov_numvfs_store
_sriov_numvfs_store:                    ## @sriov_numvfs_store
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_to_pci_dev
	movq	%rax, %r15
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtou16
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.1:
	movl	-36(%rbp), %r12d
	movq	%r15, %rdi
	callq	_pci_sriov_get_totalvfs
	cmpl	%eax, %r12d
	jle	LBB0_3
## %bb.2:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movq	%r15, %rdi
	callq	_device_lock
	movl	-36(%rbp), %ecx
	movq	16(%r15), %rax
	movl	(%rax), %edx
	cmpl	%edx, %ecx
	je	LBB0_15
## %bb.4:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.10:
	testl	%edx, %edx
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_pci_warn
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_pci_info
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movq	%r15, %rdi
	callq	_device_unlock
	testl	%ebx, %ebx
	cmovsl	%ebx, %r14d
	movl	%r14d, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*%rax
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_12:
	movq	%r15, %rdi
	movl	%ecx, %esi
	callq	*%rax
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:
	movl	-36(%rbp), %edx
	cmpl	%edx, %ebx
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_pci_warn
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Driver does not support SRIOV configuration via sysfs\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"%d VFs already enabled. Disable before enabling %d VFs\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"%d VFs requested; only %d enabled\n"

	.no_dead_strip	_sriov_numvfs_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sriov_numvfs_store
_sriov_numvfs_store:                    ; @sriov_numvfs_store
	.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, x3
	mov	x21, x2
	bl	_to_pci_dev
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtou16
	mov	x21, x0
	tbnz	w0, #31, LBB0_12
; %bb.1:
	ldr	w22, [sp, #12]
	mov	x0, x20
	bl	_pci_sriov_get_totalvfs
	cmp	w22, w0
	b.le	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_3:
	mov	x0, x20
	bl	_device_lock
	ldr	w3, [sp, #12]
	ldr	x8, [x20, #16]
	ldr	w2, [x8]
	cmp	w3, w2
	b.eq	LBB0_11
; %bb.4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.6:
	cbz	w3, LBB0_13
; %bb.7:
	cbz	w2, LBB0_14
; %bb.8:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_pci_warn
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_pci_info
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x20
	bl	_device_unlock
	cmp	w21, #0
	csel	w21, w21, w19, lt
LBB0_12:
	mov	x0, x21
	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
LBB0_13:
	mov	x0, x20
	mov	w1, #0
	blr	x8
	mov	x21, x0
	b	LBB0_11
LBB0_14:
	mov	x0, x20
	mov	x1, x3
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_11
; %bb.15:
	ldr	w2, [sp, #12]
	cmp	w21, w2
	b.eq	LBB0_11
; %bb.16:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_pci_warn
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver does not support SRIOV configuration via sysfs\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"%d VFs already enabled. Disable before enabling %d VFs\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"%d VFs requested; only %d enabled\n"

	.no_dead_strip	_sriov_numvfs_store
.subsections_via_symbols
