	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_queue_tx_reclaim
_ipw_queue_tx_reclaim:                  ## @ipw_queue_tx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	28(%rsi), %esi
	callq	_ipw_read32
	movq	%rax, %r12
	movq	(%rbx), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_9
## %bb.1:
	cmpq	%r12, 8(%rbx)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ipw_queue_tx_free_tfd
	incl	4(%r14)
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	callq	_ipw_queue_inc_wrap
	movq	%rax, 8(%rbx)
	cmpq	%r12, %rax
	jne	LBB0_2
	jmp	LBB0_3
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_IPW_ERROR
LBB0_3:
	movq	%rbx, %rdi
	callq	_ipw_tx_queue_space
	testl	%r15d, %r15d
	js	LBB0_6
## %bb.4:
	cmpq	16(%rbx), %rax
	jle	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	callq	_netif_wake_queue
LBB0_6:
	movl	24(%rbx), %eax
	subl	8(%rbx), %eax
	jns	LBB0_8
## %bb.7:
	addl	(%rbx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read index for DMA queue (%d) is out of range [0-%d)\n"

	.no_dead_strip	_ipw_queue_tx_reclaim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_queue_tx_reclaim
_ipw_queue_tx_reclaim:                  ; @ipw_queue_tx_reclaim
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x1, #28]
	bl	_ipw_read32
	mov	x22, x0
	ldr	x2, [x19]
	cmp	x0, x2
	b.ge	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, x22
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_ipw_queue_tx_free_tfd
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	ldp	x1, x0, [x19]
	bl	_ipw_queue_inc_wrap
	str	x0, [x19, #8]
	cmp	x0, x22
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_IPW_ERROR
LBB0_4:
	mov	x0, x19
	bl	_ipw_tx_queue_space
	tbnz	w21, #31, LBB0_7
; %bb.5:
	ldr	x8, [x19, #16]
	cmp	x0, x8
	b.le	LBB0_7
; %bb.6:
	ldr	w0, [x20]
	bl	_netif_wake_queue
LBB0_7:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #8]
	subs	w0, w8, w9
	b.pl	LBB0_9
; %bb.8:
	ldr	w8, [x19]
	add	w0, w0, w8
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read index for DMA queue (%d) is out of range [0-%d)\n"

	.no_dead_strip	_ipw_queue_tx_reclaim
.subsections_via_symbols
