	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il_hcmd_queue_reclaim
_il_hcmd_queue_reclaim:                 ## @il_hcmd_queue_reclaim
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	8(%rdi), %r13
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %r14
	movl	(%r13,%r14,4), %ecx
	cmpl	%edx, %ecx
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	leaq	(,%r14,4), %r12
	addq	%r13, %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_il_queue_used
	movl	(%r12), %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	movl	%ecx, %esi
	callq	_il_queue_inc_wrap
	movq	%rax, %rbx
	movl	4(%r13,%r14,4), %edi
	cmpl	%ebx, %edi
	je	LBB0_8
## %bb.5:
	leaq	4(,%r14,4), %r12
	addq	%r13, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_il_queue_inc_wrap
	movl	%eax, (%r12)
	cmpl	%ebx, %eax
	je	LBB0_8
## %bb.6:
	leaq	8(,%r14,4), %r14
	addq	%r13, %r14
	leaq	L_.str.1(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_IL_ERR
	movl	4(%r15), %edi
	movq	%r15, %rsi
	callq	_queue_work
	movl	(%r12), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_il_queue_inc_wrap
	movl	%eax, (%r12)
	cmpl	%ebx, %eax
	jne	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_3:
	movl	4(%r13,%r14,4), %r9d
	movl	8(%r13,%r14,4), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IL_ERR                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read idx for DMA queue txq id (%d), idx %d, is out of range [0-%d] %d %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"HCMD skipped: idx (%d) %d %d\n"

	.no_dead_strip	_il_hcmd_queue_reclaim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il_hcmd_queue_reclaim
_il_hcmd_queue_reclaim:                 ; @il_hcmd_queue_reclaim
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x2
	mov	x22, x1
	ldr	x23, [x0, #8]
	sxtw	x24, w22
	mov	w8, #12
	smaddl	x20, w1, w8, x23
	ldr	w3, [x20]
	cmp	w3, w2
	b.le	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_il_queue_used
	ldr	w3, [x20]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x21
	mov	x1, x3
	bl	_il_queue_inc_wrap
	mov	x21, x0
	mov	w8, #12
	madd	x25, x24, x8, x23
	ldr	w0, [x25, #4]!
	cmp	w0, w21
	b.eq	LBB0_7
; %bb.3:
	ldr	w1, [x20]
	bl	_il_queue_inc_wrap
	str	w0, [x25]
	cmp	w0, w21
	b.eq	LBB0_7
; %bb.4:
	mov	x3, x0
	mov	w8, #12
	madd	x8, x24, x8, x23
	add	x23, x8, #8
Lloh0:
	adrp	x22, l_.str.1@PAGE
Lloh1:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x22
	mov	x1, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_IL_ERR
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
	ldr	w0, [x25]
	ldr	w1, [x20]
	bl	_il_queue_inc_wrap
	mov	x3, x0
	str	w3, [x25]
	cmp	w3, w21
	b.ne	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w8, #12
	madd	x8, x24, x8, x23
	ldp	w8, w9, [x8, #4]
	stp	x9, x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_IL_ERR
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read idx for DMA queue txq id (%d), idx %d, is out of range [0-%d] %d %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"HCMD skipped: idx (%d) %d %d\n"

	.no_dead_strip	_il_hcmd_queue_reclaim
.subsections_via_symbols
