	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_alloc_sqs
_nic_alloc_sqs:                         ## @nic_alloc_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	cmpl	$0, 16(%rdi)
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_nic_nxt_avail_sqs
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rcx
	movq	8(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	8(%r15), %rcx
	movl	%eax, %eax
	movq	%rdx, (%rcx,%rax,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	movq	_NIC_MBOX_MSG_ALLOC_SQS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	8(%r14), %rsi
	movq	%rsi, -40(%rbp)
	movl	%ebx, -32(%rbp)
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_nic_send_msg_to_vf
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_MBOX_MSG_ALLOC_SQS,4,2     ## @NIC_MBOX_MSG_ALLOC_SQS
	.no_dead_strip	_nic_alloc_sqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_alloc_sqs
_nic_alloc_sqs:                         ; @nic_alloc_sqs
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_nic_nxt_avail_sqs
	tbnz	w0, #31, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20, #8]
	ldr	x8, [x8, x9, lsl #3]
	str	w0, [x8, x21, lsl #2]
	ldr	x8, [x19, #8]
	str	x9, [x8, w0, uxtw #3]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
Lloh0:
	adrp	x8, _NIC_MBOX_MSG_ALLOC_SQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_MBOX_MSG_ALLOC_SQS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x1, [x20, #8]
	str	x1, [sp]
	stp	w21, w8, [sp, #8]
	mov	x2, sp
	mov	x0, x19
	bl	_nic_send_msg_to_vf
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_MBOX_MSG_ALLOC_SQS,4,2     ; @NIC_MBOX_MSG_ALLOC_SQS
	.no_dead_strip	_nic_alloc_sqs
.subsections_via_symbols
