	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_next_compl_idx
_slic_next_compl_idx:                   ## @slic_next_compl_idx
	.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
	movl	(%rdi), %r12d
	movq	32(%rdi), %rax
	movq	(%rax,%r12,8), %rax
	movq	8(%rdi), %rcx
	shlq	$4, %rcx
	cmpq	$0, (%rax,%rcx)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	(%rax,%rcx), %r15
	movq	8(%rax,%rcx), %rdi
	callq	_le32_to_cpu
	movzwl	%ax, %r14d
	decl	%r14d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_slic_next_queue_idx
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	24(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	movq	_SLIC_REG_RBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_lower_32_bits
	orl	16(%rbx), %eax
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_slic_write
	movq	%rbx, %rdi
	callq	_slic_flush_write
	leal	1(%r12), %eax
	movq	_SLIC_NUM_STAT_DESC_ARRAYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_4
LBB0_1:
	movq	_SLIC_INVALID_STAT_DESC_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SLIC_INVALID_STAT_DESC_IDX,4,2 ## @SLIC_INVALID_STAT_DESC_IDX
	.comm	_SLIC_REG_RBAR,4,2              ## @SLIC_REG_RBAR
	.comm	_SLIC_NUM_STAT_DESC_ARRAYS,4,2  ## @SLIC_NUM_STAT_DESC_ARRAYS
	.no_dead_strip	_slic_next_compl_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_next_compl_idx
_slic_next_compl_idx:                   ; @slic_next_compl_idx
	.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
	ldr	w22, [x0]
	ldr	x8, [x0, #32]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [x0, #8]
	add	x21, x8, x9, lsl #4
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x0, [x21, #8]
	bl	_le32_to_cpu
	and	w8, w0, #0xffff
	sub	w20, w8, #1
	stp	xzr, xzr, [x21]
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #16]
	bl	_slic_next_queue_idx
	str	x0, [x19, #8]
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x22, lsl #2]
Lloh0:
	adrp	x8, _SLIC_REG_RBAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLIC_REG_RBAR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_lower_32_bits
	ldr	w8, [x19, #16]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	bl	_slic_write
	mov	x0, x19
	bl	_slic_flush_write
	add	w8, w22, #1
Lloh3:
	adrp	x9, _SLIC_NUM_STAT_DESC_ARRAYS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SLIC_NUM_STAT_DESC_ARRAYS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _SLIC_INVALID_STAT_DESC_IDX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SLIC_INVALID_STAT_DESC_IDX@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SLIC_INVALID_STAT_DESC_IDX,4,2 ; @SLIC_INVALID_STAT_DESC_IDX
	.comm	_SLIC_REG_RBAR,4,2              ; @SLIC_REG_RBAR
	.comm	_SLIC_NUM_STAT_DESC_ARRAYS,4,2  ; @SLIC_NUM_STAT_DESC_ARRAYS
	.no_dead_strip	_slic_next_compl_idx
.subsections_via_symbols
