	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_request_sqs
_nicvf_request_sqs:                     ## @nicvf_request_sqs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 40(%rdi)
	jne	LBB0_17
## %bb.1:
	movq	%rdi, %r12
	movl	(%rdi), %r14d
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.2:
	movq	_NIC_MBOX_MSG_ALLOC_SQS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	32(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	%r14d, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_nicvf_send_msg_to_pf
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$0, (%r12)
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_17
## %bb.5:
	jle	LBB0_15
## %bb.6:
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	4(%r12), %ebx
	movl	12(%r12), %r14d
	addl	8(%r12), %r14d
	movq	_MAX_SND_QUEUES_PER_QS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	cmpl	%eax, %r14d
	cmovlel	%r13d, %eax
	subl	%eax, %r14d
	movq	_MAX_RCV_QUEUES_PER_QS@GOTPCREL(%rip), %r15
	subl	(%r15), %ebx
	cmovlel	%r13d, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r14d, 4(%rax)
	xorl	%r15d, %r15d
	movl	%r14d, %esi
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_max
	movq	24(%r12), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, 8(%rdx)
	movl	4(%rcx), %edi
	callq	_nicvf_open
	incq	%r13
	movslq	(%r12), %rax
	movl	%r15d, %r14d
	cmpq	%rax, %r13
	movq	_MAX_RCV_QUEUES_PER_QS@GOTPCREL(%rip), %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jge	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_NIC_MBOX_MSG_SNICVF_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	32(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	%r13d, -56(%rbp)
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	callq	_nicvf_send_msg_to_pf
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	%r13d, (%rax)
	movl	(%r15), %edi
	movq	8(%rax), %rax
	cmpl	%edi, %ebx
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, (%rax)
	subl	(%r15), %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, (%rax)
	movl	%ebx, %edi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_MAX_SND_QUEUES_PER_QS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%r14d, %r15d
	subl	%esi, %r15d
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%esi, 4(%rax)
	jmp	LBB0_13
LBB0_14:
	movl	-60(%rbp), %r14d                ## 4-byte Reload
LBB0_15:
	cmpl	%eax, %r14d
	je	LBB0_17
## %bb.16:
	movl	16(%r12), %edi
	movl	4(%r12), %edx
	movl	8(%r12), %esi
	callq	_nicvf_set_real_num_queues
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_MBOX_MSG_ALLOC_SQS,4,2     ## @NIC_MBOX_MSG_ALLOC_SQS
	.comm	_MAX_RCV_QUEUES_PER_QS,4,2      ## @MAX_RCV_QUEUES_PER_QS
	.comm	_MAX_SND_QUEUES_PER_QS,4,2      ## @MAX_SND_QUEUES_PER_QS
	.comm	_NIC_MBOX_MSG_SNICVF_PTR,4,2    ## @NIC_MBOX_MSG_SNICVF_PTR
	.no_dead_strip	_nicvf_request_sqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_request_sqs
_nicvf_request_sqs:                     ; @nicvf_request_sqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w21, [x0]
	ldr	x8, [x0, #40]
	cmp	x8, #0
	ccmp	w21, #0, #4, eq
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _NIC_MBOX_MSG_ALLOC_SQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_MBOX_MSG_ALLOC_SQS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	w8, [x0, #32]
	stp	w8, w9, [sp, #4]
	str	w21, [sp]
	mov	x1, sp
	bl	_nicvf_send_msg_to_pf
	cbz	x0, LBB0_4
; %bb.2:
	str	wzr, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.5:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.6:
	mov	x22, #0
	ldp	w10, w8, [x19, #8]
Lloh3:
	adrp	x23, _MAX_SND_QUEUES_PER_QS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_SND_QUEUES_PER_QS@GOTPAGEOFF]
	ldr	w9, [x23]
	ldr	w11, [x19, #4]
	add	w8, w8, w10
	cmp	w8, w9
	csel	w9, w9, wzr, gt
Lloh5:
	adrp	x24, _MAX_RCV_QUEUES_PER_QS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MAX_RCV_QUEUES_PER_QS@GOTPAGEOFF]
	sub	w20, w8, w9
	ldr	w8, [x24]
	subs	w8, w11, w8
	csel	w25, w8, wzr, gt
Lloh7:
	adrp	x26, _NIC_MBOX_MSG_SNICVF_PTR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _NIC_MBOX_MSG_SNICVF_PTR@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w27, #0
	str	w20, [x8, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x20
	bl	_max
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [x8, #8]
	str	w0, [x9, #8]
	ldr	w0, [x8, #4]
	bl	_nicvf_open
	add	x22, x22, #1
	ldrsw	x8, [x19]
	mov	x20, x27
	cmp	x22, x8
	b.ge	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x26]
	ldr	w8, [x19, #32]
	stp	w8, w9, [sp, #4]
	str	w22, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_nicvf_send_msg_to_pf
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x22, lsl #3]
	str	w22, [x8]
	ldr	w0, [x24]
	ldr	x8, [x8, #8]
	cmp	w25, w0
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	str	w0, [x8]
	ldr	w9, [x24]
	sub	w25, w25, w9
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	str	w25, [x8]
	mov	x0, x25
	mov	w25, #0
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x23]
	subs	w27, w20, w9
	b.le	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	str	w9, [x8, #4]
	mov	x20, x9
	b	LBB0_8
LBB0_14:
	cmp	w21, w8
	b.eq	LBB0_3
; %bb.15:
	ldr	w0, [x19, #16]
	ldp	w2, w1, [x19, #4]
	bl	_nicvf_set_real_num_queues
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_MBOX_MSG_ALLOC_SQS,4,2     ; @NIC_MBOX_MSG_ALLOC_SQS
	.comm	_MAX_RCV_QUEUES_PER_QS,4,2      ; @MAX_RCV_QUEUES_PER_QS
	.comm	_MAX_SND_QUEUES_PER_QS,4,2      ; @MAX_SND_QUEUES_PER_QS
	.comm	_NIC_MBOX_MSG_SNICVF_PTR,4,2    ; @NIC_MBOX_MSG_SNICVF_PTR
	.no_dead_strip	_nicvf_request_sqs
.subsections_via_symbols
