	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_pio_handle_txstatus  ## -- Begin function b43legacy_pio_handle_txstatus
	.p2align	4, 0x90
_b43legacy_pio_handle_txstatus:         ## @b43legacy_pio_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	24(%rsi), %esi
	leaq	-48(%rbp), %rdx
	callq	_parse_cookie
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_B43legacy_WARN_ON
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	decl	12(%r14)
	movl	8(%r14), %eax
	subl	(%rdi), %eax
	addl	$-4, %eax
	movl	%eax, 8(%r14)
	callq	_IEEE80211_SKB_CB
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_ieee80211_tx_info_clear_status
	cmpq	$0, 16(%r12)
	je	LBB0_3
## %bb.2:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_3:
	movq	(%r12), %rax
	movq	(%r15), %rcx
	movq	(%rcx), %rdi
	cmpq	(%rdi), %rax
	jle	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movl	$0, (%rax)
	movl	8(%r12), %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_8
LBB0_5:
	movl	8(%r12), %ecx
	movl	%ecx, %edx
	movq	(%rbx), %rax
	subl	%r13d, %edx
	jle	LBB0_7
## %bb.6:
	movl	%r13d, (%rax)
	movl	%edx, 8(%rax)
	jmp	LBB0_8
LBB0_7:
	movl	%ecx, (%rax)
	movl	$-1, 12(%rax)
LBB0_8:
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	callq	_ieee80211_tx_status_irqsafe
	movq	-48(%rbp), %rax
	movq	$0, (%rax)
	movq	-48(%rbp), %rdi
	movl	$1, %esi
	callq	_free_txpacket
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_tasklet_schedule
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_pio_handle_txstatus  ; -- Begin function b43legacy_pio_handle_txstatus
	.p2align	2
_b43legacy_pio_handle_txstatus:         ; @b43legacy_pio_handle_txstatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	w1, [x1, #24]
	add	x2, sp, #8
	bl	_parse_cookie
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_B43legacy_WARN_ON
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w8, [x0]
	mov	w9, #-4
	sub	w8, w9, w8
	ldr	d0, [x19, #8]
	movi	d1, #0xffffffffffffffff
	mov.s	v1[0], w8
	add.2s	v0, v1, v0
	str	d0, [x19, #8]
	bl	_IEEE80211_SKB_CB
	mov	x22, x0
	ldr	x8, [x0]
	ldr	w23, [x8]
	bl	_ieee80211_tx_info_clear_status
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22, #8]
	orr	w8, w9, w8
	str	w8, [x22, #8]
LBB0_3:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x0, [x9]
	ldr	x9, [x0]
	cmp	x8, x9
	b.le	LBB0_5
; %bb.4:
	ldr	x8, [x22]
	str	wzr, [x8]
	ldr	w9, [x20, #8]
	str	w9, [x8, #8]
	b	LBB0_8
LBB0_5:
	ldr	w9, [x20, #8]
	ldr	x8, [x22]
	subs	w10, w9, w23
	b.le	LBB0_7
; %bb.6:
	str	w23, [x8]
	str	w10, [x8, #8]
	b	LBB0_8
LBB0_7:
	str	w9, [x8]
	mov	w9, #-1
	str	w9, [x8, #12]
LBB0_8:
	ldr	x8, [sp, #8]
	ldr	x1, [x8]
	bl	_ieee80211_tx_status_irqsafe
	ldr	x8, [sp, #8]
	str	xzr, [x8]
	ldr	x0, [sp, #8]
	mov	w1, #1
	bl	_free_txpacket
	add	x0, x19, #4
	bl	_list_empty
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_tasklet_schedule
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
.subsections_via_symbols
