	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_tx_queue_reclaim        ## -- Begin function il4965_tx_queue_reclaim
	.p2align	4, 0x90
_il4965_tx_queue_reclaim:               ## @il4965_tx_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	8(%rdi), %r14
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rbx
	movl	(%r14,%rbx,8), %ecx
	cmpl	%edx, %ecx
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	leaq	(%r14,%rbx,8), %r13
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_il_queue_used
	movl	(%r13), %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	%r12d, %edi
	movl	%ecx, %esi
	callq	_il_queue_inc_wrap
	movq	%rax, %rcx
	movl	4(%r14,%rbx,8), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %eax
	je	LBB0_9
## %bb.5:
	leaq	(%r14,%rbx,8), %r12
	addq	$4, %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_IL4965_FIRST_AMPDU_QUEUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	_il_queue_inc_wrap
	movl	%eax, (%r12)
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	12(%r12), %rcx
	cltq
	movq	(%rcx,%rax,8), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_ieee80211_is_data_qos
	cmpq	$1, %rax
	sbbl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%edx, %edx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rbx)
	setle	%dl
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_il4965_tx_status
	movq	12(%r12), %rax
	movslq	(%r12), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	(%r15), %rax
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	*(%rax)
	jmp	LBB0_8
LBB0_2:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_3:
	movl	4(%r14,%rbx,8), %r9d
	movl	8(%r14,%rbx,8), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	callq	_IL_ERR
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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"

	.comm	_IL4965_FIRST_AMPDU_QUEUE,4,2   ## @IL4965_FIRST_AMPDU_QUEUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_tx_queue_reclaim        ; -- Begin function il4965_tx_queue_reclaim
	.p2align	2
_il4965_tx_queue_reclaim:               ; @il4965_tx_queue_reclaim
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x1
	ldr	x24, [x0, #8]
	sxtw	x26, w19
	mov	w8, #24
	smaddl	x21, w1, w8, x24
	ldr	w3, [x21]
	cmp	w3, w2
	b.le	LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x22
	bl	_il_queue_used
	ldr	w3, [x21]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x22
	mov	x1, x3
	bl	_il_queue_inc_wrap
	mov	x22, x0
	mov	w8, #24
	madd	x25, x26, x8, x24
	ldr	w0, [x25, #4]!
	cmp	w0, w22
	b.eq	LBB0_8
; %bb.3:
	mov	w23, #0
	mov	w8, #24
	madd	x8, x26, x8, x24
	add	x26, x8, #16
Lloh0:
	adrp	x27, _IL4965_FIRST_AMPDU_QUEUE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _IL4965_FIRST_AMPDU_QUEUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	ldr	w1, [x21]
	bl	_il_queue_inc_wrap
	str	w0, [x25]
	cmp	w0, w22
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x24, [x8, w0, sxtw #3]
	cmp	x24, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_ieee80211_is_data_qos
	cmp	x0, #0
	cinc	w23, w23, ne
	ldr	w8, [x27]
	cmp	w8, w19
	cset	w2, le
	mov	x0, x20
	mov	x1, x24
	bl	_il4965_tx_status
	ldr	x8, [x26]
	ldrsw	x9, [x25]
	str	xzr, [x8, x9, lsl #3]
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	b	LBB0_4
LBB0_7:
	mov	w8, #24
	madd	x8, x26, x8, x24
	ldp	w5, w4, [x8, #4]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	bl	_IL_ERR
LBB0_8:
	mov	w23, #0
LBB0_9:
	mov	x0, x23
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	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"

	.comm	_IL4965_FIRST_AMPDU_QUEUE,4,2   ; @IL4965_FIRST_AMPDU_QUEUE
.subsections_via_symbols
