	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_num_sqs_en
_nic_num_sqs_en:                        ## @nic_num_sqs_en
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MAX_SQS_PER_VF_SINGLE_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_num_online_cpus
	movq	_MAX_QUEUES_PER_QSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.1:
	movq	_nr_node_ids@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_3
## %bb.2:
	movq	_MAX_SQS_PER_VF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_3:
	movl	(%r15), %edi
	movq	_PCI_EXT_CAP_ID_SRIOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_ext_capability
	movl	(%r15), %edi
	movslq	%eax, %rsi
	movq	_PCI_SRIOV_TOTAL_VF@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	-40(%rbp), %rdx
	callq	_pci_read_config_word
	movq	-40(%rbp), %rdi
	movslq	%r14d, %rsi
	subq	%rsi, %rdi
	imull	%r12d, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_min
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SQS_PER_VF_SINGLE_NODE,4,2 ## @MAX_SQS_PER_VF_SINGLE_NODE
	.comm	_MAX_QUEUES_PER_QSET,8,3        ## @MAX_QUEUES_PER_QSET
	.comm	_nr_node_ids,4,2                ## @nr_node_ids
	.comm	_MAX_SQS_PER_VF,4,2             ## @MAX_SQS_PER_VF
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ## @PCI_EXT_CAP_ID_SRIOV
	.comm	_PCI_SRIOV_TOTAL_VF,8,3         ## @PCI_SRIOV_TOTAL_VF
	.no_dead_strip	_nic_num_sqs_en
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_num_sqs_en
_nic_num_sqs_en:                        ; @nic_num_sqs_en
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MAX_SQS_PER_VF_SINGLE_NODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SQS_PER_VF_SINGLE_NODE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_num_online_cpus
Lloh3:
	adrp	x8, _MAX_QUEUES_PER_QSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_QUEUES_PER_QSET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _nr_node_ids@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nr_node_ids@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MAX_SQS_PER_VF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_SQS_PER_VF@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, #1
	csel	w21, w9, w21, gt
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_pci_find_ext_capability
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _PCI_SRIOV_TOTAL_VF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCI_SRIOV_TOTAL_VF@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, w0, sxtw
	add	x2, sp, #8
	mov	x0, x8
	bl	_pci_read_config_word
	ldr	x8, [sp, #8]
	sub	x0, x8, w19, sxtw
	mul	w1, w21, w19
	bl	_min
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SQS_PER_VF_SINGLE_NODE,4,2 ; @MAX_SQS_PER_VF_SINGLE_NODE
	.comm	_MAX_QUEUES_PER_QSET,8,3        ; @MAX_QUEUES_PER_QSET
	.comm	_nr_node_ids,4,2                ; @nr_node_ids
	.comm	_MAX_SQS_PER_VF,4,2             ; @MAX_SQS_PER_VF
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ; @PCI_EXT_CAP_ID_SRIOV
	.comm	_PCI_SRIOV_TOTAL_VF,8,3         ; @PCI_SRIOV_TOTAL_VF
	.no_dead_strip	_nic_num_sqs_en
.subsections_via_symbols
