	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_dma_handle_txstatus  ## -- Begin function b43legacy_dma_handle_txstatus
	.p2align	4, 0x90
_b43legacy_dma_handle_txstatus:         ## @b43legacy_dma_handle_txstatus
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	24(%rsi), %esi
	leaq	-44(%rbp), %rdx
	callq	_parse_cookie
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_31
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, 28(%r13)
	sete	%dil
	callq	_B43legacy_WARN_ON
	movl	(%r13), %eax
	subl	4(%r13), %eax
	leal	1(%rax), %r12d
	cmpl	$-2, %eax
	jg	LBB0_3
## %bb.2:
	addl	8(%r13), %r12d
LBB0_3:
	xorl	%edi, %edi
	cmpl	%r12d, -44(%rbp)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	movl	24(%r13), %edx
	movl	-44(%rbp), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_b43legacydbg
	jmp	LBB0_31
LBB0_5:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_7
	.p2align	4, 0x90
LBB0_8:
	cmpl	8(%r13), %eax
	setl	%al
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	xorb	$1, %al
	movzbl	%al, %edi
	callq	_B43legacy_WARN_ON
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	leaq	-56(%rbp), %rdx
	callq	_op32_idx2desc
	movq	-56(%rbp), %rcx
	movq	8(%rcx), %rax
	movl	16(%rcx), %esi
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	(%rax), %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:
	movl	$4, %edx
LBB0_12:
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_unmap_descbuffer
	movq	-56(%rbp), %rax
	cmpq	$0, (%rax)
	movq	8(%rax), %rax
	je	LBB0_21
## %bb.13:
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	-56(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_ieee80211_tx_info_clear_status
	cmpq	$0, 16(%r15)
	je	LBB0_15
## %bb.14:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_15:
	movq	(%r15), %rax
	movq	(%r14), %rcx
	movq	8(%rcx), %rdi
	cmpq	(%rdi), %rax
	jle	LBB0_17
## %bb.16:
	movq	(%rbx), %rax
	movl	$0, (%rax)
	movl	8(%r15), %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_21:
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_B43legacy_WARN_ON
	movq	-56(%rbp), %rax
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_17:
	movl	8(%r15), %ecx
	movl	%ecx, %edx
	movq	(%rbx), %rax
	subl	%r12d, %edx
	jle	LBB0_19
## %bb.18:
	movl	%r12d, (%rax)
	movl	%edx, 8(%rax)
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:
	movl	%ecx, (%rax)
	movl	$-1, 12(%rax)
LBB0_20:
	movq	-56(%rbp), %rax
	movq	8(%rax), %rsi
	callq	_ieee80211_tx_status_irqsafe
	movq	-56(%rbp), %rax
	movq	$0, 8(%rax)
LBB0_22:
	decl	4(%r13)
	cmpq	$0, (%rax)
	jne	LBB0_24
## %bb.23:
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_next_slot
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_7
LBB0_24:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	cmpl	$0, 12(%r13)
	je	LBB0_26
## %bb.25:
	movq	%r13, %rdi
	callq	_free_slots
	movq	_SLOTS_PER_PACKET@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_B43legacy_WARN_ON
	movl	$0, 12(%r13)
LBB0_26:
	movq	(%r14), %rax
	movq	16(%rax), %rcx
	movq	16(%r13), %rsi
	cmpq	$0, (%rcx,%rsi,8)
	je	LBB0_28
## %bb.27:
	movq	$0, (%rcx,%rsi,8)
	jmp	LBB0_30
LBB0_28:
	movq	8(%rax), %rdi
	callq	_ieee80211_wake_queue
	movq	_B43legacy_DBG_DMAVERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43legacy_debug
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	(%r14), %rdi
	movl	24(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_b43legacydbg
LBB0_30:
	movq	(%r14), %rsi
	movq	8(%rsi), %rdi
	callq	_ieee80211_queue_work
LBB0_31:
	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	"Out of order TX status report on DMA ring %d. Expected %d, but got %d\n"

	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_SLOTS_PER_PACKET,8,3           ## @SLOTS_PER_PACKET
	.comm	_B43legacy_DBG_DMAVERBOSE,4,2   ## @B43legacy_DBG_DMAVERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"Woke up TX ring %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_dma_handle_txstatus  ; -- Begin function b43legacy_dma_handle_txstatus
	.p2align	2
_b43legacy_dma_handle_txstatus:         ; @b43legacy_dma_handle_txstatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x19, x0
	ldr	w1, [x1, #24]
	add	x2, sp, #20
	bl	_parse_cookie
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_30
; %bb.1:
	ldr	w8, [x20, #28]
	cmp	w8, #0
	cset	w0, eq
	bl	_B43legacy_WARN_ON
	ldp	w8, w9, [x20]
	sub	w8, w8, w9
	add	w22, w8, #1
	cmn	w8, #2
	b.gt	LBB0_3
; %bb.2:
	ldr	w8, [x20, #8]
	add	w22, w8, w22
LBB0_3:
	ldr	w8, [sp, #20]
	cmp	w8, w22
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19]
	ldr	w2, [x20, #24]
	ldr	w8, [sp, #20]
	stp	x22, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43legacydbg
	b	LBB0_30
LBB0_5:
	ldr	w0, [sp, #20]
	mov	w23, #-1
Lloh2:
	adrp	x24, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_7
LBB0_6:
	ldr	w8, [x20, #8]
	cmp	w0, w8
	cset	w8, lt
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
	eor	w0, w8, #0x1
	bl	_B43legacy_WARN_ON
	ldr	w1, [sp, #20]
	add	x2, sp, #24
	mov	x0, x20
	bl	_op32_idx2desc
	ldr	x9, [sp, #24]
	ldr	x8, [x9, #8]
	ldr	w1, [x9, #16]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w2, [x8]
	b	LBB0_11
LBB0_10:
	mov	w2, #4
LBB0_11:
	mov	x0, x20
	mov	w3, #1
	bl	_unmap_descbuffer
	ldr	x8, [sp, #24]
	ldp	x9, x8, [x8]
	cmp	x8, #0
	cbz	x9, LBB0_16
; %bb.12:
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #8]
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	ldr	x8, [x0]
	ldr	w25, [x8]
	bl	_ieee80211_tx_info_clear_status
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w8, [x24]
	ldr	w9, [x22, #8]
	orr	w8, w9, w8
	str	w8, [x22, #8]
LBB0_14:
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	x0, [x9, #8]
	ldr	x9, [x0]
	cmp	x8, x9
	b.le	LBB0_17
; %bb.15:
	ldr	x8, [x22]
	str	wzr, [x8]
	ldr	w9, [x21, #8]
	str	w9, [x8, #8]
	b	LBB0_20
LBB0_16:
	cset	w0, ne
	bl	_B43legacy_WARN_ON
	ldr	x8, [sp, #24]
	b	LBB0_21
LBB0_17:
	ldr	w9, [x21, #8]
	ldr	x8, [x22]
	subs	w10, w9, w25
	b.le	LBB0_19
; %bb.18:
	str	w25, [x8]
	str	w10, [x8, #8]
	b	LBB0_20
LBB0_19:
	str	w9, [x8]
	str	w23, [x8, #12]
LBB0_20:
	ldr	x8, [sp, #24]
	ldr	x1, [x8, #8]
	bl	_ieee80211_tx_status_irqsafe
	ldr	x8, [sp, #24]
	str	xzr, [x8, #8]
LBB0_21:
	ldr	w9, [x20, #4]
	sub	w9, w9, #1
	str	w9, [x20, #4]
	ldr	x8, [x8]
	cbnz	x8, LBB0_23
; %bb.22:
	ldr	w1, [sp, #20]
	mov	x0, x20
	bl	_next_slot
	str	w0, [sp, #20]
	tbz	w0, #31, LBB0_6
	b	LBB0_7
LBB0_23:
Lloh4:
	adrp	x8, _jiffies@GOTPAGE
Lloh5:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_25
; %bb.24:
	mov	x0, x20
	bl	_free_slots
Lloh7:
	adrp	x8, _SLOTS_PER_PACKET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SLOTS_PER_PACKET@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, lt
	bl	_B43legacy_WARN_ON
	str	wzr, [x20, #12]
LBB0_25:
	ldr	x9, [x19]
	ldr	x8, [x9, #16]
	ldr	x1, [x20, #16]
	ldr	x10, [x8, x1, lsl #3]
	cbz	x10, LBB0_27
; %bb.26:
	str	xzr, [x8, x1, lsl #3]
	b	LBB0_29
LBB0_27:
	ldr	x0, [x9, #8]
	bl	_ieee80211_wake_queue
Lloh10:
	adrp	x8, _B43legacy_DBG_DMAVERBOSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _B43legacy_DBG_DMAVERBOSE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43legacy_debug
	cbz	x0, LBB0_29
; %bb.28:
	ldr	x0, [x19]
	ldr	w2, [x20, #24]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_b43legacydbg
LBB0_29:
	ldr	x1, [x19]
	ldr	x0, [x1, #8]
	bl	_ieee80211_queue_work
LBB0_30:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of order TX status report on DMA ring %d. Expected %d, but got %d\n"

	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_SLOTS_PER_PACKET,8,3           ; @SLOTS_PER_PACKET
	.comm	_B43legacy_DBG_DMAVERBOSE,4,2   ; @B43legacy_DBG_DMAVERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"Woke up TX ring %d\n"

.subsections_via_symbols
