	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function size_nports_qsets
_size_nports_qsets:                     ## @size_nports_qsets
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %ecx
	movl	%ecx, 4(%rdi)
	movq	_MAX_NPORTS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	cmpl	%edx, %ecx
	jbe	LBB0_2
## %bb.1:
	movl	28(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movl	(%r14), %eax
	movl	%eax, 4(%rbx)
LBB0_2:
	movl	24(%rbx), %edi
	callq	_hweight32
	movl	4(%rbx), %ecx
	cmpl	%ecx, %eax
	jae	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	24(%rbx), %r8d
	movl	28(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	movl	%r14d, 4(%rbx)
	movl	%r14d, %ecx
LBB0_4:
	movq	_msi@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_MSI_MSI@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	sete	%al
	notl	%eax
	addl	12(%rbx), %eax
	movl	16(%rbx), %edi
	cmpl	%eax, %edi
	je	LBB0_6
## %bb.5:
	movl	%eax, %esi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	movl	4(%rbx), %ecx
LBB0_6:
	movl	20(%rbx), %esi
	leal	(%rax,%rax), %edi
	movl	%esi, %edx
	shrl	%edx
	cmpl	%edi, %esi
	cmovael	%eax, %edx
	movq	_MAX_ETH_QSETS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	cmovael	%eax, %edx
	movl	%edx, (%rbx)
	cmpl	%ecx, %edx
	jae	LBB0_8
## %bb.7:
	movl	28(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movl	(%rbx), %eax
	movl	%eax, 4(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NPORTS,4,2                 ## @MAX_NPORTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"only using %d of %d maximum allowed virtual interfaces\n"

L_.str.1:                               ## @.str.1
	.asciz	"only using %d of %d provisioned virtual interfaces; limited by Port Access Rights mask %#x\n"

	.comm	_msi,8,3                        ## @msi
	.comm	_MSI_MSI,8,3                    ## @MSI_MSI
	.comm	_MAX_ETH_QSETS,4,2              ## @MAX_ETH_QSETS
L_.str.2:                               ## @.str.2
	.asciz	"only using %d of %d available virtual interfaces (too few Queue Sets)\n"

	.no_dead_strip	_size_nports_qsets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function size_nports_qsets
_size_nports_qsets:                     ; @size_nports_qsets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w3, [x0, #8]
	str	w3, [x0, #4]
Lloh0:
	adrp	x20, _MAX_NPORTS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_NPORTS@GOTPAGEOFF]
	ldr	w2, [x20]
	cmp	w3, w2
	b.ls	LBB0_2
; %bb.1:
	ldr	w0, [x19, #28]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	w8, [x20]
	str	w8, [x19, #4]
LBB0_2:
	ldr	w0, [x19, #24]
	bl	_hweight32
	ldr	w3, [x19, #4]
	cmp	w0, w3
	b.hs	LBB0_4
; %bb.3:
	mov	x20, x0
	ldp	w8, w0, [x19, #24]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
	str	w20, [x19, #4]
	mov	x3, x20
LBB0_4:
Lloh6:
	adrp	x8, _msi@GOTPAGE
Lloh7:
	ldr	x8, [x8, _msi@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _MSI_MSI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MSI_MSI@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	mvn	w8, w8
	ldp	w9, w0, [x19, #12]
	add	w1, w8, w9
	cmp	w0, w1
	b.eq	LBB0_6
; %bb.5:
	bl	_min
	mov	x1, x0
	ldr	w3, [x19, #4]
LBB0_6:
	ldr	w8, [x19, #20]
	lsr	w9, w8, #1
	cmp	w8, w1, lsl #1
Lloh12:
	adrp	x8, _MAX_ETH_QSETS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_ETH_QSETS@GOTPAGEOFF]
	csel	w9, w9, w1, lo
Lloh14:
	ldr	w8, [x8]
	cmp	w9, w8
	csel	w2, w9, w8, lo
	str	w2, [x19]
	cmp	w2, w3
	b.hs	LBB0_8
; %bb.7:
	ldr	w0, [x19, #28]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	ldr	w8, [x19]
	str	w8, [x19, #4]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NPORTS,4,2                 ; @MAX_NPORTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"only using %d of %d maximum allowed virtual interfaces\n"

l_.str.1:                               ; @.str.1
	.asciz	"only using %d of %d provisioned virtual interfaces; limited by Port Access Rights mask %#x\n"

	.comm	_msi,8,3                        ; @msi
	.comm	_MSI_MSI,8,3                    ; @MSI_MSI
	.comm	_MAX_ETH_QSETS,4,2              ; @MAX_ETH_QSETS
l_.str.2:                               ; @.str.2
	.asciz	"only using %d of %d available virtual interfaces (too few Queue Sets)\n"

	.no_dead_strip	_size_nports_qsets
.subsections_via_symbols
