	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_tx_queue_reclaim
_il3945_tx_queue_reclaim:               ## @il3945_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	%rdi, %r14
	movq	24(%rdi), %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rax
	movq	%rax, %r15
	shlq	$5, %r15
	leaq	(%r15,%r13), %rbx
	movq	_IL39_CMD_QUEUE_NUM@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	%eax, (%rcx)
	sete	%dil
	callq	_BUG_ON
	movl	16(%r13,%r15), %esi
	movl	%r12d, %edi
	callq	_il_queue_inc_wrap
	movq	%rax, %r12
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13,%r15), %eax
	cmpl	%r12d, %eax
	je	LBB0_3
## %bb.1:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r15), %r13
	addq	$16, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	cltq
	movq	(%rcx,%rax,8), %rsi
	movl	16(%r14), %edi
	callq	_ieee80211_tx_status_irqsafe
	movq	8(%r13), %rax
	movslq	(%rbx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	8(%r14), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movl	(%rbx), %edi
	movl	(%r13), %esi
	callq	_il_queue_inc_wrap
	movl	%eax, (%rbx)
	cmpl	%r12d, %eax
	jne	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_il_queue_space
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	js	LBB0_7
## %bb.4:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	8(%rdx,%r15), %rax
	jle	LBB0_7
## %bb.5:
	movq	_IL39_CMD_QUEUE_NUM@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_il_wake_queue                  ## TAILCALL
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IL39_CMD_QUEUE_NUM,4,2         ## @IL39_CMD_QUEUE_NUM
	.no_dead_strip	_il3945_tx_queue_reclaim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_tx_queue_reclaim
_il3945_tx_queue_reclaim:               ; @il3945_tx_queue_reclaim
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	sxtw	x9, w21
	add	x20, x8, x9, lsl #5
Lloh0:
	adrp	x23, _IL39_CMD_QUEUE_NUM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IL39_CMD_QUEUE_NUM@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w1
	cset	w0, eq
	bl	_BUG_ON
	mov	x24, x20
	ldr	w1, [x24, #16]!
	mov	x0, x22
	bl	_il_queue_inc_wrap
	mov	x22, x0
	ldr	w0, [x20]
	cmp	w0, w22
	b.eq	LBB0_3
; %bb.1:
	add	x25, x20, #24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x1, [x8, w0, sxtw #3]
	ldr	w0, [x19, #16]
	bl	_ieee80211_tx_status_irqsafe
	ldr	x8, [x25]
	ldrsw	x9, [x20]
	str	xzr, [x8, x9, lsl #3]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	w0, [x20]
	ldr	w1, [x24]
	bl	_il_queue_inc_wrap
	str	w0, [x20]
	cmp	w0, w22
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_il_queue_space
	tbnz	w21, #31, LBB0_7
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	w9, [x23]
	cmp	x0, x8
	ccmp	w9, w21, #4, gt
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_il_wake_queue
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IL39_CMD_QUEUE_NUM,4,2         ; @IL39_CMD_QUEUE_NUM
	.no_dead_strip	_il3945_tx_queue_reclaim
.subsections_via_symbols
