	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_max_vf_buses
_compute_max_vf_buses:                  ## @compute_max_vf_buses
	.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
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movl	(%r12), %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pci_iov_set_numvfs
	cmpl	$0, 12(%r12)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$2, %ebx
	jl	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 8(%r12)
	je	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pci_iov_virtfn_bus
	cmpl	4(%r12), %eax
	jle	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, 4(%r12)
	jmp	LBB0_1
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_iov_set_numvfs
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_compute_max_vf_buses
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_max_vf_buses
_compute_max_vf_buses:                  ; @compute_max_vf_buses
	.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	x19, x0
	ldr	x21, [x0]
	ldr	w20, [x21]
	cbnz	w20, LBB0_2
	b	LBB0_8
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w20, LBB0_8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_pci_iov_set_numvfs
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #2
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w20, w20, #1
	mov	x0, x19
	mov	x1, x20
	bl	_pci_iov_virtfn_bus
	ldr	w8, [x21, #4]
	cmp	w0, w8
	b.le	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w0, [x21, #4]
	b	LBB0_1
LBB0_7:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_iov_set_numvfs
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_compute_max_vf_buses
.subsections_via_symbols
